Description Usage Arguments Value Examples
A function to slice data frames without loosing column names
1 | SliceDfColumns(df, columns)
|
df |
A dataframe to slice |
columns |
A integer vector. The ids of the columns to return. |
A dataframe containing only the columns number columns
from
df
.
1 2 3 4 5 6 | ## Not run:
SliceDfColumns(df, 1)
SliceDfColumns(df, 1:5)
SliceDfColumns(df, c(1,3,5))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.