Monthly Archives: September 2010
I came along this forum (http://r.789695.n4.nabble.com/R-for-Windows-GUI-closes-when-I-try-to-read-spss-td862748.html) and it comes to a solution we considered which was exporting data to a .csv and then reading it into R. But that isn’t helpful if you have a lot of variables to recode … Continue reading
Josh sent this link (http://www.personality-project.org/R/r.commands.html) along which contains a cheat sheet of common R commands. I like it and if anyone else has found some, send them along. Paolo’s blog (“One R Tip A Day”) might have something like this, … Continue reading
I tried this for plotting out some chi-square distributions with various df and it seemed to work out: s<-seq(0,25,.01) plot(s,dchisq(s,2),type=”l”,lwd=2,col=”dodgerblue4″) lines(s,dchisq(s,5),type=”l”,lwd=2,col=”green1″) lines(s,dchisq(s,10),type=”l”,lwd=2,col=”orange1″) This should look something like this: Here’s something similar for a normal distribution (notice that I use slightly … Continue reading
I just found this (http://journal.r-project.org/) and found some great packages in the (few) issues that the group has published. It’s definitely worth checking out.
I have found it useful to create quick and simple vectors and data frames within R since I know that much of the real world data I might be working with may have certain peculiarities that sometimes impede the learning … Continue reading
So I’ve discovered that fix() command has been more helpful to me when I want to edit a data frame and potentially multiple vectors while edit() looks like it is best used with single vectors. So far I haven’t found … Continue reading