Erin
xx[, names(xx)!='x2']
HTH
Peter Alspach
-Original Message-
From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] On Behalf Of Erin Hodgess
Sent: Wednesday, 15 April 2009 5:39 p.m.
To: R help
Subject: [R] excluding a column from a data frame
Dear R
On 4/15/2009 1:38 AM, Erin Hodgess wrote:
Dear R People:
Suppose I have the following data frame:
x1 x2 x3
1 -0.1582116 0.06635783 1.765448
2 -1.1407422 0.47235664 0.615931
3 0.8702362 2.32301341 2.653805
str(xx)
'data.frame': 3 obs. of 3 variables:
$ x1:
PM
To: R help
Subject: [R] excluding a column from a data frame
Dear R People:
Suppose I have the following data frame:
x1 x2 x3
1 -0.1582116 0.06635783 1.765448
2 -1.1407422 0.47235664 0.615931
3 0.8702362 2.32301341 2.653805
str(xx)
'data.frame': 3 obs. of 3
Dear R People:
Suppose I have the following data frame:
x1 x2 x3
1 -0.1582116 0.06635783 1.765448
2 -1.1407422 0.47235664 0.615931
3 0.8702362 2.32301341 2.653805
str(xx)
'data.frame': 3 obs. of 3 variables:
$ x1: num -0.158 -1.141 0.87
$ x2: num 0.0664 0.4724
Tena koe Erin
xx[, names(xx)!='x2']
HTH
Peter Alspach
-Original Message-
From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] On Behalf Of Erin Hodgess
Sent: Wednesday, 15 April 2009 5:39 p.m.
To: R help
Subject: [R] excluding a column from a data frame
-boun...@r-project.org] On Behalf Of Erin Hodgess
Sent: Wednesday, 15 April 2009 5:39 p.m.
To: R help
Subject: [R] excluding a column from a data frame
Dear R People:
Suppose I have the following data frame:
x1 x2 x3
1 -0.1582116 0.06635783 1.765448
2 -1.1407422
6 matches
Mail list logo