Randomly sample covariate rows
draw_covariate_rows(n, df, covariate_weights = NULL)
n | number rows to draw |
---|---|
df | data frame to draw from |
covariate_weights | default is NULL which draws uniformly at random with replacement from the sample_covariates_df. Otherwise, the weights are used. |
new df