Description Usage Arguments Value Examples
View source: R/manipulate_data.R
Select columns from a data frame using a character vector or numeric vector
1 2 |
df |
A data frame |
colchars |
A character vector of column names (default: c()) |
colnumbs |
A numeric vector of column numbers (default: c()) |
complete_names |
Boolean determining if the entered strings are exact column names (rather than fragments of column names) (default: TRUE) |
df_order |
Boolean that determines if the columns selected are returned
in the order they appear in |
print.colnames |
Boolean determining if selected column names should be printed upon completion (default: FALSE) |
print.colnumbs |
Boolean determining if selected column numbers should be printed upon completion (default: FALSE) |
A data frame consisting of the columns from df
whose names
match the character vector colchars
in the order that the appear in
the column names of df
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.