Articles by Forester

Including arguments in R CMD BATCH mode

August 16, 2007 | Forester

When you have multiple computers or processors at your disposal and wish to run the same script with different arguments, use the following at the command line (here described for Linux; remove the linebreak, it is just there for display purposes):$ R CMD BATCH --no-save --no-restore '--args a=1 b=c(2,5,6)... [Read more...]

Variance-Covariance Matrix in glm

July 20, 2007 | Forester

This is a small function Venables and Ripley provide in their MASS book. You don't need it anymore because vcov() has a method for the glm class. However, it is useful to see how to extract bits from a fitted model object.vcov.glm #return the variance-covariance matrix of a ... [Read more...]

Visualizing Data

July 18, 2007 | Forester

Sometimes it is helpful to see the plots created from the example files within R libraries. Of course you can paste them directly into R, but this web page allows you to view the images within the context of the help files:R Graphical ManualsAlso, chec... [Read more...]

Convert image to matrix in R

May 17, 2007 | Forester

This is how to use the Pixmap library to read in an image as a matrix.__ library(pixmap)# the next command may only work on Linux__ system("convert foo.tiff foo.ppm")__ img To get info on your new object: __ str(img)Although included in the previous output, the size ... [Read more...]
1 2

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)