extree_data-methods: Methods for extree_data objects

Description Usage Arguments Details Examples

Description

Methods for computing on extree_data objects.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'extree_data'
str(object, max.level = 1, give.attr = FALSE, ...)
## S3 method for class 'extree_data'
print(x, ...)
## S3 method for class 'extree_data'
dimnames(x)
## S3 method for class 'extree_data'
dim(x)

Arguments

x

an object of class extree_data.

object

an object of class extree_data.

max.level

maximal level of nesting which is applied for displaying nested structures, e.g., a list containing sub lists. Default NA: Display all nesting levels.

give.attr

logical; if TRUE (default), show attributes as sub structures.

...

additional arguments passed to str.

Details

str compactly shows the internal structure of the object and print calls str.

dimnames gets the dimnames of x$data and dim gets the dim of x$data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    ## airquality data
    airq <- subset(airquality, !is.na(Ozone))
    my_data <- extree_data(Ozone ~ Wind + Temp, 
        data = airq, yx = "matrix")
        
    ## use methods
    print(my_data)
    str(my_data)
    dim(my_data)
    dimnames(my_data)
    

partykitx documentation built on Sept. 3, 2020, 3:01 p.m.