Currently only implemented for Cort models. Compute, as a Cort object, the projection on a smaller set of dimensions of a Cort object.

project_on_dims(object, dims)

# S4 method for class 'Cort'
project_on_dims(object, dims)

Arguments

object

: the tree

dims

the set of dimensions

Value

other cort object

Functions

  • project_on_dims,Cort-method: Method for the class Cort

Examples

cop <- Cort(LifeCycleSavings[,1:3])
#> Splitting...
#> 
#>      1 leaves to split...
#>      5 leaves to split...
#>      10 leaves to split...
#>      5 leaves to split...
#>      3 leaves to split...
#> Enforcing constraints...
#> Done !
projection = project_on_dims(cop,c(1,2))