| Transformation | R Documentation |
Container for the type of transformation used in
Pipeline.
Note: For internal use.
nameName of transformation.
fnTransformation function.
argslist of arguments for `fn`.
group_colsNames of columns to group data.frame
by before applying `fn`.
When `NULL`, the data.frame is not grouped.
new()Initialize transformation.
Transformation$new(fn, args, name = NULL, group_cols = NULL)
fnTransformation function.
argslist of arguments for `fn`.
nameName of transformation.
group_colsNames of columns to group data.frame
by before applying `fn`.
When `NULL`, the data.frame is not grouped.
apply()Apply the transformation to a data.frame.
Transformation$apply(data)
datadata.frame.
A grouped data.frame will first be ungrouped. If `group_cols` is specified,
it will then be grouped by those columns.
Transformed version of `data`.
print()Print an overview of the transformation.
Transformation$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.
Transformation$clone(deep = FALSE)
deepWhether to make a deep clone.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Other transformation classes:
FixedGroupsTransformation,
GeneratedTransformation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.