Computes feature values from feature definition
get_feat_value(
feat_def,
features,
alt_names,
operators = c("+", "-", "*", "/", "(", ")", "ABS", "COS", "SIN", "SQR", "SQRT"),
split = "|"
)
a vector of feature values.
a feature definition as created by buildFeature
.
a data.frame of features, typically an object of class `IFC_features`.
vector of same length as features to use for substitution. It can be used to speed up the process.
operators used. Default is c("+", "-", "*", "/", "(", ")", "ABS", "COS", "SIN", "SQR", "SQRT").
string used for splitting. Default is "|".
if 'feat_def$type' is "combined" returned value will be computed according in the scope of 'features' according to 'feat_def$def'. Otherwise, 'feat_def$name' will be searched in 'features' to return value, and if not found 'feat_def$val' will be returned.