Posts Tagged ‘ Basic R Tips ’

More Recursion in R

May 26, 2009
By

I found another gem in R today. Earlier I commented about how R could do recursion, something that I love. I write some pretty complicated recursion functions in my research, but I also have a bad habit of compulsively reorganizing things. Now I've c...

Read more »

Using partial name matching and match.arg

April 13, 2009
By

Sorry it has been so long to write an R tip. I've been really busy with my research, which you would think would produce lots of tips, but apparently not. Anyway here is a little tip to look at. read more

Read more »

Working with directories

October 24, 2008
By

Something quite annoying to me is when I get an R script and I have to change all of the file references in the script. I get something like this this: source("C:\\Documents and Settings\\UserName\\Data\\...\\File1.R") data<-read.table("C:\\Documen...

Read more »

pmin and pmax

September 16, 2008
By

Did you know that there are multiple versions of the min and max function. make sure that you are using the right one. pmin and pmax are the 'parallel' versions of the min and max function, meaning that they can take vector arguments and return vectors back. Much better than setting up your own apply function....

Read more »