Displaying 2 results from an estimated 2 matches for "logcfu".
2011 Jun 26
2
Only one strip with italic font.
Hi R users:
How can I obtain an italic font only
for one of the two strips in a xyplot?
library(lattice)
t<-rep(seq(0,10,5),4)
logCFU<-c(2,2.5,3,4,4.5,1.5,2,2.5,3,3.4,2,2.5)
microorg<-factor(rep(c("E. coli","L. monocytogenes"),each=6))
tratam<-factor(rep(c("t1","t2"),6))
xyplot(logCFU~t|microorg+tratam,type="p",
strip=strip.custom(par.strip.text=list(fontface=c("ital...
2011 Jun 21
5
converting character to numeric
I'm trying to convert data from character to numeric.
I've imported data as a csv file, I'm assuming that the import is a
database - are all the columns in a database considered "vectors" and that
they can be operated on individually
Therefore I've tried the following
mydata <- as.numeric(mydata$apples)
when i then look at mydata again the named column is still