Data | R Documentation |
As abstract, a Data object cannot be stored on any layer. Instead, extended TrainData or TestData objects can be stored on a layer.
new()
Constructor of class Data.
Data$new(id, ind_col, data_frame)
id
character
Object ID.
ind_col
character
Column name containing individual IDs.
data_frame
data.frame
data.frame
containing data.
print()
Printer
Data$print(...)
...
any
getIndSubset()
Retrieve a data subset for a given variable name and values, a data subset.
Data$getIndSubset(var_name, value)
var_name
character
Variable name of interest.
value
vector
Values of interest.
The data subset is returned.
impute()
Imputes missing values in modality-specific predictions. Only mode and median based imputations are actually supported.
Data$impute(impute_fct, impute_param, target_name)
impute_fct
character
An imputation function to use instead of median or mode imputation. Not yet implemented!
impute_param
list
target_name
character
Name of the target variable.
The list of parameters to call the imputation function.
A new object with the predicted values is returned.
getVarSubset()
Retrieve a subset of variables from data.
Data$getVarSubset(var_name)
var_name
character
Variable names of interest.
The data subset is returned.
getSetDiff()
For the given variable name, non existing values in the current dataset are returned.
Data$getSetDiff(var_name, value)
var_name
character
Variable name of interest.
value
vector
Values of interest.
The subset difference is returned.
getDataFrame()
Getter of the data.frame
.
Data$getDataFrame()
The data.frame
of the current object is returned.
setDataFrame()
Set a new data.frame
to the current object.
Data$setDataFrame(data_frame)
data_frame
data.frame
The current object is returned.
getCompleteData()
Getter of the complete dataset without missing values.
Data$getCompleteData()
The complete dataset is returned.
getId()
Getter of the current object ID.
Data$getId()
The current object ID is returned.
getData()
Getter of the current Data. This function is re-implemented by TrainData and TestData.
Data$getData()
Do not use on this class.
getIndCol()
Getter of the individual column variable.
Data$getIndCol()
clone()
The objects of this class are cloneable with this method.
Data$clone(deep = FALSE)
deep
Whether to make a deep clone.
TrainData and TestData
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.