Skip to contents

Convenience function to create a funnel model from a data frame column.

Usage

bs_model_funnel_col(data, column, ...)

Arguments

data

Data frame or sf object

column

Name of column containing sample sizes

...

Additional arguments passed to bs_model_funnel()

Value

A bs_model_funnel object

Examples

df <- data.frame(sample_size = c(1000, 2000, 3000))
model <- bs_model_funnel_col(df, "sample_size")
model$name
#> [1] "Funnel: sample_size"