These functions are for developers that need minimal overhead when filtering on rows and/or cols.
sset_df(x, i = NULL, j = NULL, ...)sset_row(x, i = NULL)
sset_col(x, j = NULL)
A data frame subsetted on rows i
and cols j
.
A data.frame
.
Rows - If NULL
all rows are returned.
Cols - If NULL
all cols are returned.
Unused.
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.