| surv_filter | R Documentation |
Creates a new surv_design object containing only sequences
matching the specified filter criteria.
surv_filter(design, ...)
design |
A |
... |
Filter expressions passed to |
A new surv_design object with filtered data.
surv_design()
sim <- surv_simulate(n_regions = 5, n_weeks = 12, seed = 1)
d <- surv_design(sim$sequences, ~ region,
sim$population[c("region", "seq_rate")], sim$population)
d_sub <- surv_filter(d, region %in% c("Region_A", "Region_B"))
print(d_sub)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.