email: smckinney +at+ bccrc +dot+ ca
tel: 604-675-8000 x7561
BCCRC
Molecular Oncology
675 West 10th Ave, Floor 4
Vancouver B.C.
V5Z 1L3
Canada
-Original Message-----
From: [EMAIL PROTECTED] on behalf of Steven McKinney
Sent: Fri 8/3/2007 11:10 AM
To: r-help@stat.math.ethz.ch
Subject: Re: [
Hi Bert,
> -Original Message-
> From: Bert Gunter [mailto:[EMAIL PROTECTED]
> Sent: Fri 8/3/2007 3:19 PM
> To: Steven McKinney; r-help@stat.math.ethz.ch
> Subject: RE: [R] FW: Selecting undefined column of a data frame (was
> [BioC]read.phenoData vs read.Annotated
s called defensive programming.
Bert Gunter
Genentech
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven McKinney
Sent: Friday, August 03, 2007 10:38 AM
To: r-help@stat.math.ethz.ch
Subject: [R] FW: Selecting undefined column of a data frame (was
[B
>
> >
> >> -Original Message-
> >> From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
> >> Sent: Fri 8/3/2007 1:05 PM
> >> To: Steven McKinney
> >> Cc: r-help@stat.math.ethz.ch
> >> Subject: Re: [R] FW: Selecting undefined column of a data
> -Original Message-
> From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
> Sent: Fri 8/3/2007 1:05 PM
> To: Steven McKinney
> Cc: r-help@stat.math.ethz.ch
> Subject: Re: [R] FW: Selecting undefined column of a data frame (was [BioC]
> read.phenoData vs read.Annotated
I've since seen your followup a more detailed explanation may help.
The path through the code for your argument list does not go where you
quoted, and there is a reason for it.
Generally when you extract in R and ask for an non-existent index you get
NA or NULL as the result (and no warning), e.
er than after?
-Original Message-
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Sent: Fri 8/3/2007 12:25 PM
To: Steven McKinney
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] FW: Selecting undefined column of a data frame (was [BioC]
read.phenoData vs read.AnnotatedDataFrame)
You a
You are reading the wrong part of the code for your argument list:
> foo["FileName"]
Error in `[.data.frame`(foo, "FileName") : undefined columns selected
[.data.frame is one of the most complex functions in R, and does many
different things depending on which arguments are supplied.
On Fri,
email: smckinney +at+ bccrc +dot+ ca
tel: 604-675-8000 x7561
BCCRC
Molecular Oncology
675 West 10th Ave, Floor 4
Vancouver B.C.
V5Z 1L3
Canada
-Original Message-
From: [EMAIL PROTECTED] on behalf of Steven McKinney
Sent: Fri 8/3/2007 10:37 AM
To: r-help@stat.math.ethz.ch
Subje
Hi all,
What are current methods people use in R to identify
mis-spelled column names when selecting columns
from a data frame?
Alice Johnson recently tackled this issue
(see [BioC] posting below).
Due to a mis-spelled column name ("FileName"
instead of "Filename") which produced no warning,
Ali
10 matches
Mail list logo