add_class_hierarchy_cache

0th

Percentile

Add a Class Hierarchy to the Cache

Add a class hierarchy to the class hierarchy cache. This is necessary whenever an S3 class's class hierarchy is important when inferring compatibility between types.

Usage
add_class_hierarchy_cache(hierarchy)
Arguments
hierarchy

character the class hierarchy to add; should correspond to the class() of the lowest object in the hierarchy.

Value

NULL

See Also

Other class hierarchy operations: register_autoconvert_function, reset_autoconvert_register, reset_class_hierarchy_cache

Aliases
  • add_class_hierarchy_cache
Examples
# NOT RUN {
# This lets mlr3pipelines handle "data.table" as "data.frame".
# This is an example and not necessary, because mlr3pipelines adds it by default.

add_class_hierarchy_cache(c("data.table", "data.frame"))
# }
Documentation reproduced from package mlr3pipelines, version 0.1.1, License: LGPL-3

Community examples

Looks like there are no examples yet.