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
>
>
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
2 matches
Mail list logo