draw_covariate_rows: Randomly sample covariate rows

Description Usage Arguments Value

View source: R/simulate_general_outbreaks.R

Description

Randomly sample covariate rows

Usage

1
draw_covariate_rows(n, df, covariate_weights = NULL)

Arguments

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.

Value

new df


skgallagher/InfectionTrees documentation built on July 28, 2021, 2:14 p.m.