Learn R Programming

Bodi (version 0.1.0)

buildBlock: buildBlock

Description

Compute blocks of consecutive data for blockwise CV or sampling.

Usage

buildBlock(Nblock, data0)

Arguments

Nblock

number of blocks

data0

the learning set

Value

A list of vectors containing the indices of each block.

Examples

Run this code
# NOT RUN {
buildBlock(4, data.frame(id = 1:15))
# }

Run the code above in your browser using DataLab