replicate_profiles | R Documentation |
Replicate profiles data.frame
replicate_profiles(
profiles,
replications,
probabilities = NULL,
replacement = TRUE,
seed_used = NULL
)
profiles |
data.frame of profiles |
replications |
integer, final number of observations |
probabilities |
vector of probabilities with the same length as the number of rows of profiles. Does not need to add up to 1 (are reweighted) |
replacement |
Boolean whether replacement is used |
seed_used |
Integer with the seed to be used for consistent results |
Resampled data.frame of profiles
replicate_profiles(profiles=data.frame(id=1:100,age=rnorm(100,60,5)),
replications=200,probabilities=rep(1,100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.