[R] convert a data frame with NULL to a list of integer

2010-01-29 Thread kennyPA
I have a data frame with integers mixed with a lot of NULLs, how do I convert that to multiple lists of integers with zero (to replace NULL)? I tried the following, and they failed: > dim(g2) [1] 25352 173 > class(g2) [1] "data.frame" > class(g2[1,]) [1] "data.frame" > g2[1,30:40] 30

[R] jpeg support in R

2009-11-25 Thread kennyPA
Hi, I'd like to have jpeg support in R under RedHat Linux, when I ran the ./configure in the install process, the config.log gave me the following error messages: configure:43621: checking if jpeglib version >= 6b conftest.c:200:21: error: jpeglib.h: No such file or directory I assume I need to

[R] multiple groups with different colors in boxplot

2009-10-13 Thread kennyPA
Can anybody help me on how to boxplot multiple groups with different color? Say, I have 3 groups of data, each group with 2 boxes, and I'd like to have the following layout in the boxplot: red, red, green, green, blue, blue thanks in advance. -- View this message in context: http://www.nabble