Learn R Programming

mikropml (version 1.6.1)

check_training_indices: Check the validity of the training indices

Description

Check the validity of the training indices

Usage

check_training_indices(training_inds, dataset)

Arguments

training_inds

vector of integers corresponding to samples for the training set

dataset

data frame containing the entire dataset

Author

Kelly Sovacool, sovacool@umich.edu

Examples

Run this code
if (FALSE) {
training_indices <- otu_small %>%
  nrow() %>%
  sample(., size = 160)
check_training_indices(training_indices, otu_small)
}

Run the code above in your browser using DataLab