Compute sample sizes for *k*-fold cross-validation.

1 | ```
kfcv(k, N)
``` |

`k` |
number of groups. |

`N` |
total sample size. |

If N/k is an integer, the sample sizes are k ‘N/k’s (N/k, N/k, ...), otherwise the remainder will be allocated to each group as ‘uniformly’ as possible, and at last these sample sizes will be permuted randomly.

A vector of length `k`

containing *k* sample sizes.

Yihui Xie

1 2 3 4 5 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.

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

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