fx_partition: List of Partitions

View source: R/fx_partition.R

fx_partitionR Documentation

List of Partitions

Description

List of partitions to apply to data frame for CV

Usage

fx_partition(df0, type = NULL, nresample = NULL, balance.col = NULL)

Arguments

df0

data frame including all observations

type

cross-validation type

balance.col

???

nresaple

???

Value

list of same length as subsamples of train/test partitions. Each list element contains "test", "train" and "sample.type" variables:

  • "test": is numeric list, values correspond to rows in df0 assigned to model "test" group

  • "train": is numeric list, values correspond to rows in df0 assigned to model "train" group

  • "sample.type": description of cross-validation method (e.g., 5-fold)


fishpm/nruPredict documentation built on July 12, 2022, 3:22 p.m.