| FixedGroupsTransformation | R Documentation |
Container for the type of transformation used in
FixedGroupsPipeline.
Note: For internal use.
rearrr::Transformation -> FixedGroupsTransformation
nameName of transformation.
fnTransformation function.
argslist of constant arguments for `fn`.
var_argslist of arguments for `fn` with different values per group.
num_groupsNumber of groups that the transformation expects.
apply_arglist of TRUE/FALSE flags indicating
whether the transformation should be applied to each of the groups.
When `NULL`, the transformation is applied to all groups.
new()Initialize transformation.
FixedGroupsTransformation$new(fn, args, var_args, name = NULL)
fnTransformation function.
argslist of constant arguments for `fn`.
var_argslist of arguments for `fn` with different values per group.
Each argument should have a list of values (one per group).
By adding ".apply" with a list of TRUE/FALSE flags, the transformation
can be disabled for a specific group.
E.g. list(".apply" = list(TRUE, FALSE, TRUE), ....
nameName of transformation.
get_group_args()Get arguments for specific group ID.
FixedGroupsTransformation$get_group_args(group_id)
group_idID of the group to get arguments for.
list of arguments.
apply()Apply the transformation to a data.frame.
FixedGroupsTransformation$apply(data)
datadata.frame with the expected number of groups.
Transformed version of `data`.
print()Print an overview of the transformation.
FixedGroupsTransformation$print(..., indent = 0, show_class = TRUE)
...further arguments passed to or from other methods.
indentHow many spaces to indent when printing.
show_classWhether to print the transformation class name.
The pipeline. To allow chaining of methods.
clone()The objects of this class are cloneable with this method.
FixedGroupsTransformation$clone(deep = FALSE)
deepWhether to make a deep clone.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Other transformation classes:
GeneratedTransformation,
Transformation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.