Re: [R] excluding a column from a data frame

2009-04-15 Thread Erin Hodgess
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

Re: [R] excluding a column from a data frame

2009-04-15 Thread Chuck Cleland
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:

Re: [R] excluding a column from a data frame

2009-04-15 Thread Bert Gunter
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

[R] excluding a column from a data frame

2009-04-14 Thread Erin Hodgess
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

Re: [R] excluding a column from a data frame

2009-04-14 Thread Peter Alspach
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

Re: [R] excluding a column from a data frame

2009-04-14 Thread Coen van Hasselt
-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