Displaying 1 result from an estimated 1 matches for "remvoer".
Did you mean:
remover
2009 Feb 22
1
Filtering a data frame using a string for colum header
Hi all,
I was just radomly playing with R and got the following error when
trying to filter a data frame using a string:
> Angel <- c(7,8,6,9,10)
> Buffy <- c(8,9,4,9,10)
> Firefly <- c(9,9,10,10,10)
> DrHorrible <- c(10,9,9,10,10)
> my.df <- data.frame(Angel, Buffy, Firefly, DrHorrible)
> my.df["DrHorrible"]
DrHorrible
1 10
2 9
3