Re: [R] Removing columns from data frame referenced by column index

2010-05-31 Thread sayan dasgupta
data(airquality) head(airquality) Suppose you want to remove the 1st and the 3rd column this will do airquality[,-c(1,3)] suman dhara wrote: > > Can you suggest me any way to remove a column of a data frame by the > column > number,not by the column name. > > Thanks, > Suman Dhara > >

[R] Removing columns from data frame referenced by column index

2010-05-31 Thread suman dhara
Can you suggest me any way to remove a column of a data frame by the column number,not by the column name. Thanks, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel