Re: [R] Problem with rowMeans()

From: Wacek Kusnierczyk <Waclaw.Marcin.Kusnierczyk_at_idi.ntnu.no>
Date: Fri, 13 Jun 2008 09:33:53 +0200

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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 13 Jun 2008 - 07:40:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 13 Jun 2008 - 08:30:55 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive