Skip to navigation

Archive for the 'R' Category

R: Logical operators: Beware of the difference between “&&” and “&”

Friday, September 12th, 2008

There’s a tricky bit about R’s logical operators, and though it’s described in the help pages that you get when you type, for example,
?”&”
I still fall from it from time to time. (I think it has to do with my rudimentary knowledge and usage of “&&” for if-statements in bash shell scripts.
Below I just go […]

Better buffer switching in Emacs

Tuesday, May 20th, 2008

I’ve switched from XEmacs to Emacs, about a month back. I like it much better. On Xubuntu, many more things work “out of the box” (for example the Noweb mode for Sweave). X clipboard contents are immediately available for yanking!
One thing that’s always annoyed me in both XEmacs and Emacs was the buffer switching […]

Nicely formatted p values in Sweave

Thursday, May 15th, 2008

R function:
pval

Using the LaTeX landscape package for a plot/ figure in Sweave

Tuesday, April 15th, 2008

I’ve started using Sweave and immediately ran into a problem. I had a wide figure to include (actually, a plot that combined several plots in R using the layout command). I had used the lscape package in LaTeX and the corresponding landscape environment for that page, and before, it worked fine, but with Sweave, the […]

R: Delicious statistical-computing recipes at R-Cookbook.com

Friday, September 28th, 2007

Just on the R mailing list, more good news for users and wannabe-users of R: R-Cookbook.com is a new community site that offers handy R recipes. Once you register, you can post your own recipes and create a collection of your personal favorites. Looks like someone put Drupal to good use. My only quip […]