add_data(data, group_by)
[data: (`data.frame` | `data.table`)] A dataframe or data.table which shall be added to the R6 object.
[group_by: (`character(1)`)] The grouping variable's name of the dataframe.
This method writes single RDS files for each group.
preprocess_data(fun)
[fun: (`function`)] A function, which has a dataframe as input and a dataframe as output.
This method loads the RDS files and applies this function on them. The old RDS files are overwritten.
remove_data(ids)
[ids: (`character()`)] One or many IDs of the grouping variable.
This method deletes the RDS files of the given IDs.
get_data(ids)
[ids: (`character()`)] One or many IDs of the grouping variable.
This method returns one dataframe with the chosen IDs.
add_feature(fun, check_fun)
[fun: (`function`)] A function, which has a dataframe as input and a named vector or list as output.
[check_fun: (`logical(1)`)] The function will be checked if it returns a vector or a list. Defaults to TRUE
. Disable, if calculation takes too long.
This method adds the feature function to the R6 object. It writes an RDS file of the function which can be retrieved later.
remove_feature(fun)
[fun: (`function | character(1)`)] A function (or the name of the function as character) which shall be removed.
This method removes the function from the object and deletes all corresponding files and results.
get_feature(fun)
[fun: (`character(1)`)] The name of a function as character.
This method reads the RDS file of the function. Useful for debugging after loading an Xtractor.
calc_features(features, ids)
[features: (`character()`)] A character vector of the names of the features which shall be calculated. Defaults to all features.
[ids: (`character()`)] One or many IDs of the grouping variable. Defaults to all IDs.
This method calculates all features on the chosen IDs.
retry_failed_features(features)
[features: (`character()`)] A character vector of the names of the features which shall be calculated. Defaults to all features.
This method retries calculation of failed features. Useful if calculation failed because of memory problems.
plot()
[internal] method to print the R6 object.
clone()
[internal] method to clone the R6 object.
initialize()
[internal] method to initialize the R6 object.