extree_data-methods {partykitx} | R Documentation |
Methods for computing on extree_data
objects.
## 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)
x |
an object of class |
object |
an object of class |
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
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
.
## 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)