dropr | R Documentation |
dropr is used to drop a list of variables from a dataframe (and to keep the rest). Inspired by the "drop" command in Stata.
dropr(mydf, ...)
mydf |
the dataframe to be modified. |
... |
a list of the variables to be dropped. |
dropr is used internally by the fsm package.
mydf <- mtcars mydf <- dropr(mydf, "am", "gear", "carb") mydf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.