Description Usage Arguments Value Examples
extree_data
objects contain a lot of useful information. This convenience
function helps accessing them.
1 | extree_variable(x, i, type = c("original", "index", "scores", "missings"))
|
x |
an object of class |
i |
extree data slot index. Can be a numeric vector or |
type |
type of variable version to return.
|
The selected information.
1 2 3 4 5 6 7 8 9 10 11 12 13 | data("iris")
ed <- extree_data(Species ~ Sepal.Width + Sepal.Length | Petal.Width + Petal.Length, data = iris, yx = "matrix")
### response
extree_variable(ed, i = 1)
extree_variable(ed, i = "yx")
extree_variable(ed, i = "yx", type = "missings")
### covariates
extree_variable(ed, i = 4)
extree_variable(ed, i = 5, type = "index")
extree_variable(ed, i = 5)[1:10]
extree_variable(ed, i = c(2, 4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.