Skip to contents

Generate manual rset object from spatiotemporal cross-validation indices

Usage

convert_cv_index_rset(cvindex, data, cv_mode)

Arguments

cvindex

integer. Output of generate_cv_index.

data

data.frame-like object. Should be the same object as what was used for covars argument of generate_cv_index

cv_mode

character(1). Spatiotemporal cross-validation indexing method. See cv_mode description in generate_cv_index.

Value

rset object of rsample package. A tibble with a list column of training-test data.frames and a column of labels.

Author

Insang Song