View source: R/datautilities.R
dropvars | R Documentation |
drops or keeps variables from a dataframe
dropvars(dat, x)
dat |
A data frame |
x |
A vector of variables to be dropped |
A dataframe
data(mtcars)
dvars<-c("am", "cyl", "wt")
newdat<-dropvars(mtcars, dvars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.