safeSubset: subset a dataframe

View source: R/safeSubset.R

safeSubsetR Documentation

subset a dataframe

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

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 '[')


sib-swiss/dsSwissKnife documentation built on Nov. 27, 2024, 6:03 p.m.