2008

Setting up Textmate to use R

November 21, 2008 | :)-k

After becoming frustrated using the StatET plugin for Eclipse on my Mac (sometimes the R console would start and sometimes not), I decided to use Textmate instead. Textmate allows you to install extra bundles which are plug-ins to add some new function... [Read more...]

Plot symbols in R

November 18, 2008 | Yu-Sung Su

In the plot environment, the "pch" parameter decides the symbol of your output. There are about 130 symbols hard coded and passed into "pch."However, there are still some symbols that are not in these 130 pch's. For instance, there is no checkmark. To plot checkmark or other symbols, we can use ... [Read more...]

Call C from R and R from C

November 17, 2008 | Forester

Several years ago, while a research associate at the University of Chicago, I had the privilege of sitting in on a course taught by Peter Rossi: Bayesian Applications in Marketing and MicroEconometrics. This course -- one I recommend to anyone at U Chicago who is interested in statistics -- was ... [Read more...]

Sweave Engine for TeXShop

November 17, 2008 | cameron

Sweave is an awesome utility for including the output of R code in a LaTeX document which I have started using regularly. TeXShop is my favorite editor/viewer for LaTeX under Mac OS X for many reasons. One of which is the speed of the edit -__ compile -__ view ... [Read more...]

Using the booktabs package with Sweave and xtable

November 16, 2008 | cameron

The xtable package in R can output R data as latex tables. Used in conjunction with Sweave it is possible to automatically generate tables in a report. Needless to say this provides a really appealing possibility of never typing data into a table again. The only problem is that I ... [Read more...]

R function to reverse and complement a DNA sequence

November 13, 2008 | fabiomarroni

Warning!! This post is intended for documentation only. I would like to remind everyone (me in first place!) that the comp() function of the (seqinr) package can complement a DNA sequence, and rev() function of Rbase can reverse a character vector. Using a combination of the two you can reverse, ... [Read more...]

Saving a Workspace

November 11, 2008 | R Tips

R will can save the users workspace at the end of a session so that he can take it up again where he left off. I personally don't like doing this but there are times when one would want to save their work, especially after complex and time consuming co... [Read more...]

Plotting Math in R

October 29, 2008 | Yu-Sung Su

Plotting math in R can be acheived using the expression(). To know detailed usage, in R console,demo(plotmath)But expression() is not flexible when you want to plot math symbols and parameters altogether. In this case, we use bquote() which is actually a wraper for substitute() and quote(). It ... [Read more...]

Working with directories

October 24, 2008 | R Tips

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 more...]

What I’ll be presenting at O’Reilly Money Tech 2009

October 21, 2008 | mike

(April 2009 Update:  Unfortunately, The Money Tech Conference was indefinitely postponed, but fortunately I will be presenting a version of this talk in July at OSCON 2009). I’ve been invited to speak at O’Reilly’s Money Tech conference this coming February 4-6th in New York City and thought I’... [Read more...]

Another solution to the R to Word table problem

October 17, 2008 | John Johnson

Last time I used an HTML solution. This time, I create an RTF file:# function: my.rtf.table# purpose: convert a matrix, data.frame, or array into a rtf table# output: text for RTF, possibly written to a file# inputs:# tab - a table, dataframe, or array (needs rownames and ... [Read more...]

Time series packages on R

October 16, 2008 | Rob J Hyndman

There is now an official CRAN Task View for Time Series. This will replace my earlier list of time series packages for R, and provide a more visible and useful entry point for people wanting to use R for time series analysis. If I have missed anything ... [Read more...]

R’s working directory

October 3, 2008 | Michal

Do you usually start R with a desktop icon or some other shortcut? Are you tired of using setwd and getwd each time after you start R to get the working directory correctly? If so, then your days of suffering might be just coming to an end. Having the working ... [Read more...]
1 2 3 4 6

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)