Description Usage Arguments Value Author(s) Examples

Assigns n samples into k groups

1 | ```
randomly_assign(n, k)
``` |

`n` |
sample size |

`k` |
number of groups |

returns a vector of length n with a random assignment of entries from 1 to k

Ben Sherwood <ben.sherwood@ku.edu>

1 2 3 | ```
n <- 100
folds_10 <- randomly_assign(n,10)
folds_5 <- randomly_assign(n,5)
``` |

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.