safeSubset: subset a dataframe

Description Usage Arguments

View source: R/safeSubset.R

Description

takes potentially unsafe row and column filters and evals them in the context of the dataframe. It takes the following precautions: * it takes a snapshot of all the envirnoments before the execution and deletes any new objects it finds after the execution * it locks all environments before the execution, so no existing object can be modified

Usage

1
safeSubset(df, row.filter = TRUE, col.filter = TRUE)

Arguments

df

a dataframe

row.filter

a character, the filter for rows (as in '[')

col.filter

a character, the filter for columns (as in '[')


IulianD/dsSwissKnife documentation built on Nov. 12, 2020, 7:11 a.m.