| describe | R Documentation |
Describe object
describe(x, verbosity = 1L, ...)
x |
R object to describe. See method documentation for supported classes. |
verbosity |
Integer: Verbosity level. |
... |
Additional arguments passed to methods. |
Extra arguments for factor method:
max_n: Integer: Return counts for up to this many levels.
return_ordered: Logical: If TRUE, return levels ordered by count, otherwise return in level order.
verbosity: Integer: Verbosity level.
Character, invisibly.
EDG
# --- For `Supervised` objects ---
species_cart <- train(iris, hyperparameters = setup_CART())
describe(species_cart)
# --- For `SupervisedRes` objects ---
mod <- train(
iris,
hyperparameters = setup_CART(),
outer_resampling_config = setup_KFold(n_resamples = 3L)
)
describe(mod)
# --- For factors ---
# Small number of levels
describe(iris[["Species"]])
# Large number of levels: show top n by count
x <- factor(sample(letters, 1000, TRUE))
describe(x)
describe(x, 3)
describe(x, 3, return_ordered = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.