cv_folds: Cut into folds

Description Usage Arguments Value

View source: R/utils.R

Description

Assigns rows of a data frame into folds for cross-validation.

Usage

1
cv_folds(x, nfolds)

Arguments

x

a data.frame

nfolds

number of folds

Value

a vector with the fold assignment of each row


mrfoliveira/Evaluation-procedures-for-forecasting-with-spatio-temporal-data documentation built on April 11, 2021, 10:50 a.m.