Description Usage Arguments Value Examples
A function to slice data frames without loosing row names
1 | SliceDfRows(df, rows)
|
df |
A dataframe to slice |
rows |
A integer vector. The ids of the rows to return. |
A dataframe containing only the rows number rows
from df
.
1 2 3 4 5 6 | ## Not run:
SliceDfRows(df, 1)
SliceDfRows(df, 1:5)
SliceDfRows(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.