These functions are for developers that need minimal overhead when filtering on rows and/or cols.
sset_df(x, i = NULL, j = NULL, keep_attrs = FALSE)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.
Should all attributes (except for names
and row.names
)
be kept as is? The default is FALSE
which returns a plain data frame.
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.