fold: Particular fold of a data after k fold partition

Description Usage Arguments Details Value Author(s) Examples

Description

The function returns a particular fold after k-fold partitioning by kfold function.

Usage

1
fold(data1,k,i)

Arguments

data1

A matrix.

k

Number of folds

i

The fold to be returned

Details

This function is internal and used by cross validation routines.

Value

A matrix with desired fold specified.

Author(s)

Baidya Nath Mandal and Jun Ma

Examples

1
2
3
data=matrix(rnorm(10*4),10,4)
kfold(data,3)
fold(data,3,2)


Search within the nnlasso package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.