Description Usage Arguments Details Value Author(s) Examples

The function partitions a data set into k folds of equal sizes at random.

1 | ```
kfold(data1,k)
``` |

`data1` |
A matrix. |

`k` |
Number of folds |

This function is internal and used by cross validation routines.

A matrix with fold identification in first column.

Baidya Nath Mandal and Jun Ma

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.