Description Usage Arguments Value
Function removes columns from input data frame d, returning a data frame without them
1 | remove_cols(d, funcList, inds = NULL)
|
d |
Input data frame needing columns removed |
funcList |
A list of functions that each yield column indices to be removed. Called with dataframe as input. Joined with union. |
inds |
A vector of indexes to consider for removal. Useful for guaranteeing that id info won't be removed etc. The final list of columns to remove is intersected with this list. This can also be a function that is called with the data frame d, and returns a vector of indices (such as the 'span' function above). |
The input data frame d
but missing the unwanted columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.