mlh_subset | R Documentation |
Machine learning helper function to select a subset from a data matrix or a response vector.
mlh_subset(object, ids)
object |
A vector or a data matrix. Supports also subsetting of "Surv" objects. |
ids |
An integer vector specifying the indices that should be selected from the object. |
Returns the specified subset of the object.
data("iris")
mlh_subset(iris, c(1:30))
mlh_subset(iris[, 5], c(1:30))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.