resample_identity: Generate repeated resamples of the same data

View source: R/resample_identity.R

resample_identityR Documentation

Generate repeated resamples of the same data

Description

This is a dummy function, used to check the consistency of further computation. It just reshuffles the rows of the input data.

Usage

resample_identity(data, n = 10)

Arguments

data

data.frame, the data to resample.

n

integer, number of repetitions.

Value

A tibble with columns

  • train : an object of class modelr::resample. The input data with reshuffled rows.

  • val : an empty object of class modelr::resample.

  • id : integer, the repetition number.

Examples

rs <- resample_identity(mtcars, n=3)
rs
data.frame(rs$train[1])
data.frame(rs$train[2])
# = same except for the row order

jiho/joml documentation built on Dec. 6, 2023, 5:50 a.m.