search for: numf

Displaying 2 results from an estimated 2 matches for "numf".

Did you mean: num
2005 Jul 07
1
Tables: Invitation to make a collective package
...ist <- c(tmpList, list(tbl)) } } valCol <- logCol[logCol] names(tmpList) <- names(valCol) return(tmpList) } # User defines one factor else { namesdf <- names(df) pos <- which(namesdf == by) stopifnot(is.factor((df[[pos]]))) numF <- table(df[[pos]]) for(i in 1:length(numF)) { tmpdf <- subset(df, df[[pos]] == names(numF[i])) logCol <- sapply(tmpdf, is.numeric) for (j in 1:ncol(tmpdf)) { if (logCol[j]) { x <- as.matrix(tmpdf[ ,j]) tbl...
2012 Apr 13
3
How do I convert factors to numeric? It's an FAQ but...
Dear R list people I loaded a file of numbers into R and got a dataframe of factors. So I tried to convert it to numeric as per the FAQ using as.numeric(). But I'm getting errors (please see example), so what am I getting wrong? Thanks for your time. John Example... #my data object > f GSM187153 GSM187154 GSM187155 GSM187156 GSM187157 GSM187158 GSM187159 13 7.199346 7.394519