sset_df {cheapr} | R Documentation |
Fast functions for data frame subsetting
Description
These functions are for developers that need minimal overhead when filtering on rows and/or cols.
Usage
sset_df(x, i = NULL, j = NULL, ...)
sset_row(x, i = NULL)
sset_col(x, j = NULL)
Arguments
x |
A |
i |
Rows - If |
j |
Cols - If |
... |
Unused. |
Details
If you are unsure which functions to use then it is recommended to use
sset()
. These low-overhead helpers do not work well with data.tables
but should work well with basic data frames and basic tibbles.
The only real difference between sset_df
and sset_row
/sset_col
is that
sset_df
attempts to return a similar type of data frame as the input,
whereas sset_row
and sset_col
always return a plain data frame.
Value
A data frame subsetted on rows i
and cols j
.
[Package cheapr version 1.3.2 Index]