powered by
Replicate profiles data.frame
replicate_profiles( profiles, replications, probabilities = NULL, replacement = TRUE, seed_used = NULL )
Resampled data.frame of profiles
data.frame of profiles
integer, final number of observations
vector of probabilities with the same length as the number of rows of profiles. Does not need to add up to 1 (are reweighted)
Boolean whether replacement is used
Integer with the seed to be used for consistent results
replicate_profiles(profiles=data.frame(id=1:100,age=rnorm(100,60,5)), replications=200,probabilities=rep(1,100))
Run the code above in your browser using DataLab