Message ---
From: Frans Marcelissen frans.marcelis...@digipsy.nl
To: 'Paulo Barata' paulo.bar...@ensp.fiocruz.br, r-help@r-project.org
Sent: Mon, 16 Jul 2012 14:25:21 +0200
Subject: RE: [R] variable (column) in a data frame
Hoi Pauli,
There is a difference between two ways of accessing
Hi,
On Tue, Jul 17, 2012 at 10:40 AM, Paulo Barata
paulo.bar...@ensp.fiocruz.br wrote:
Dear Frans and Peter,
Yes, the notation df[,'var'] is able to catch a non-existent
variable var inside a data frame df. But the notation df$var
isn't.
So we have this situation, where two different
-
-- Original Message ---
From: Frans Marcelissen frans.marcelis...@digipsy.nl
To: 'Paulo Barata' paulo.bar...@ensp.fiocruz.br, r-help@r-project.org
Sent: Mon, 16 Jul 2012 14:25:21 +0200
Subject: RE: [R] variable (column) in a data frame
Hoi Pauli
-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
Namens Paulo Barata
Verzonden: zondag 15 juli 2012 16:31
Aan: r-help@r-project.org
Onderwerp: [R] variable (column) in a data frame
To the R help list,
When using a data frame, there is no warning or error message when I refer
to a non
To the R help list,
When using a data frame, there is no warning or error message
when I refer to a non-existent variable inside the data frame.
Example:
##--
a - c(1,2,3)
b - c(11,22,33)
df - data.frame(a,b)
df
## correct: there is a column in df
Sent: Sun, 15 Jul 2012 11:30:37 -0300
To: r-help@r-project.org
Subject: [R] variable (column) in a data frame
To the R help list,
When using a data frame, there is no warning or error message
when I refer to a non-existent variable inside the data frame.
Example
-
-- Original Message ---
From: peter dalgaard pda...@gmail.com
To: Paulo Barata paulo.bar...@ensp.fiocruz.br
Sent: Sun, 15 Jul 2012 16:47:35 +0200
Subject: Re: [R] variable (column) in a data frame
On Jul 15, 2012, at 16:30 , Paulo Barata wrote:
To the R help list
On Jul 15, 2012, at 17:41 , Paulo Barata wrote:
Dr. Dalgaard,
Thank you. But pre-checking with is.null() or using with()
doesn't solve the problem of catching spelling mistakes
in the name of a variable inside a data frame, when using
the df$var notation often in a program.
Is there
-
-- Original Message ---
From: peter dalgaard pda...@gmail.com
To: Paulo Barata paulo.bar...@ensp.fiocruz.br
Sent: Sun, 15 Jul 2012 16:47:35 +0200
Subject: Re: [R] variable (column) in a data frame
On Jul 15, 2012, at 16:30 , Paulo Barata wrote:
To the R help list
Cc: r-help@r-project.org
Sent: Sun, 15 Jul 2012 18:14:22 +0200
Subject: Re: [R] variable (column) in a data frame
On Jul 15, 2012, at 17:41 , Paulo Barata wrote:
Dr. Dalgaard,
Thank you. But pre-checking with is.null() or using with()
doesn't solve the problem of catching spelling
Paulo Barata-3 wrote
Dr. Dalgaard,
Thank you. You are right, with() is able to catch
spelling errors in the name of variables inside a data frame.
But couldn't some error or warning be included in R when referring
to a non-existent variable inside a data frame with the df$var
,!df$a==4)
[1] FALSE
A.K.
- Original Message -
From: Paulo Barata paulo.bar...@ensp.fiocruz.br
To: r-help@r-project.org
Cc:
Sent: Sunday, July 15, 2012 10:30 AM
Subject: [R] variable (column) in a data frame
To the R help list,
When using a data frame, there is no warning or error
: r-help@r-project.orgr-help@r-project.org, peter dalgaard
pda...@gmail.com
Sent: Sun, 15 Jul 2012 09:29:11 -0700
Subject: Re: [R] variable (column) in a data frame
On 2012-07-15 08:41, Paulo Barata wrote:
Dr. Dalgaard,
Thank you. But pre-checking with is.null() or using with()
doesn't solve
13 matches
Mail list logo