| .sample_names | R Documentation |
randomNames::randomNames()Sample names for specified sexes by sampling with replacement to avoid
exhausting number of name when sample.with.replacement = FALSE. The
duplicated names during sampling need to be removed to ensure each
individual has a unique name. In order to have enough unique names, more
names than required are sampled from randomNames::randomNames(), and the
level of oversampling is determined by the buffer_factor argument. A
buffer_factor too high and the more names are sampled which takes longer,
a buffer_factor too low and not enough unique names are sampled and
the .sample_names() function will need to loop until it has enough
unique names.
.sample_names(.data, buffer_factor = 1.5)
.data |
A |
buffer_factor |
A single |
A character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.