Apportions a vector of values given a specified frequency distribution of those values such that the length of the output is robust to rounding and other instabilities.

1 | ```
apportion_lr(vector.length, values, proportions, shuffled = FALSE)
``` |

`vector.length` |
Length for the output vector. |

`values` |
Values for the output vector. |

`proportions` |
Proportion distribution with one number for each value. This must sum to 1. |

`shuffled` |
If |

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.