View source: R/resample_identity.R
resample_identity | R Documentation |
This is a dummy function, used to check the consistency of further computation. It just reshuffles the rows of the input data.
resample_identity(data, n = 10)
data |
data.frame, the data to resample. |
n |
integer, number of repetitions. |
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.
rs <- resample_identity(mtcars, n=3)
rs
data.frame(rs$train[1])
data.frame(rs$train[2])
# = same except for the row order
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.