mlh_subset {kdry}R Documentation

mlh_subset

Description

Machine learning helper function to select a subset from a data matrix or a response vector.

Usage

mlh_subset(object, ids)

Arguments

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.

Value

Returns the specified subset of the object.

Examples

data("iris")
mlh_subset(iris, c(1:30))
mlh_subset(iris[, 5], c(1:30))

[Package kdry version 0.0.2 Index]