[R] Problem with rowMeans()

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Fri Jun 13 09:33:53 CEST 2008


Erik Iverson wrote:
>
>
> ss wrote:
>> It is:
>>
>>  > data <-
>> read.table('E-TABM-1-processed-data-1342561271_log2_with_symbols.txt',
>> row.names = NULL ,header=TRUE, fill=TRUE)
>>  > class(data[3])
>> [1] "data.frame"
>>  >
>>
>
> Oops, should have said  class(data[[3]]) and
> is.numeric(data[[3]])
>
oops, my typo.  of course, data[3] is a *data frame* (if data is one),
so is.numeric(data[3]) must be FALSE.  but clearly if column 3 was
excluded, is.numeric(data[[3]]) must have been FALSE.

vQ



More information about the R-help mailing list