Re: [R] DROP and KEEP statements in R

2009-12-21 Thread rmailbox
iris_subset_by_keep ) [1] "Sepal.Length" "Species" > p.s. data NeweRa ( drop = SAS ); set Much_Better; eRic - Original message - From: "Wensui Liu" To: sarjin...@yahoo.com Cc: r-help@r-project.org Date: Sat, 19 Dec 2009 20:19:51 -0500 Subj

Re: [R] DROP and KEEP statements in R

2009-12-19 Thread Wensui Liu
drop example. > data(iris) > summary(iris) Sepal.LengthSepal.Width Petal.LengthPetal.Width Min. :4.300 Min. :2.000 Min. :1.000 Min. :0.100 1st Qu.:5.100 1st Qu.:2.800 1st Qu.:1.600 1st Qu.:0.300 Median :5.800 Median :3.000 Median :4.350 Median :1.300 Mean

Re: [R] DROP and KEEP statements in R

2009-12-19 Thread Gary Miller
Try this, library(lattice) data(barley) names(barley) # Removing first column barley <- barley[,c(-1)] names(barley) # Keeping 1st and 3rd column barley <- barley[,c(1,3)] names(barley) HTH, Gary On Sat, Dec 19, 2009 at 3:21 PM, wrote: > What is equivalent to DROP or KEEP statements of SAS

[R] DROP and KEEP statements in R

2009-12-19 Thread sarjinder
What is equivalent to DROP or KEEP statements of SAS in R? -- This message was sent on behalf of sarjin...@yahoo.com at openSubscriber.com http://www.opensubscriber.com/messages/r-help@r-project.org/topic.html __ R-help@r-project.org mailing list https: