removeColumns | R Documentation |
Remove Columns from a Data Frame
removeColumns(
dframe,
columns = NULL,
columnsToRemove = NULL,
pattern = NULL,
drop = FALSE,
dbg = FALSE
)
dframe |
data frame, |
columns |
vector of column names giving the columns to remove |
columnsToRemove |
deprecated. Use argument |
pattern |
regular expression matching the names of the columns to be
removed. Will only be evaluated if no explicit column names are given in
|
drop |
if FALSE, a data frame is returned in any case, otherwise the result may be a vector if only one column remains |
dbg |
if |
dframe with columns given in columns being removed. User attributes of dframe are restored.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.