Description Usage Arguments Details Author(s)
If the population is too small, it will be made bigger by replication of entities. If the population is too big, only some entities will be selected depending to weights. If the population is exactly of the right size, then it will be entirely kept as in the original sample.
1 | matching.generate.resize_population(sample, count.required, colname.weight)
|
sample |
the sample to use for loading |
count.required |
the count of entities expected as a result |
colnaĆ.weight |
a string describing the column to be used as a weight in the sample |
The actual sampling is entirely delegated to the dplyrsample_n function.
Samuel Thiriot <samuel.thiriot@res-ear.ch>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.