Manages dataframe storage in package environment (.pkg_env$.wizaRdry_env) with optional convenience assignment to calling environment. CRAN-compliant environment management.
measure_nameCharacter string - name of the measure/dataframe
new()Create a new DataEnvironment instance
DataEnvironment$new(measure_name, df)measure_nameName of the measure/dataframe
dfInitial dataframe to store
A new DataEnvironment object
get_df()Get dataframe from package environment or calling environment
DataEnvironment$get_df()The dataframe stored in package environment
set_df()Set dataframe in package environment with optional calling environment assignment
DataEnvironment$set_df(df)dfData frame to set
Self (invisibly) for method chaining
get_colnames()Get column names from the dataframe
DataEnvironment$get_colnames()Character vector of column names
Integer number of rows
Integer number of columns
Self (invisibly)
clone()The objects of this class are cloneable with this method.
DataEnvironment$clone(deep = FALSE)deepWhether to make a deep clone.
This class provides a clean interface for getting and setting dataframes using the package environment (.pkg_env) as the authoritative source, with optional assignment to the calling environment for user convenience. This eliminates global environment pollution and follows R package best practices.