Functions to check if an object is an ic data object, or coerce it to one if possible.

as.ic_data(...)

is.ic_data(object)

Arguments

...

Elements to be combined into an ic.df object.

object

Any R object.

Value

An object of type ic.df.

Details

Core ic.df data elements are expected. Specifically, columns of data for 'region', 'country', 'time', 'vaccine', 'coverage', and 'source' (optionally 'dose' and 'population') are required in this order. The names of these elements from ... are passed to ic_data and used along with the default settings.

See also

Examples

if (FALSE) { # convert data.frame to an imcover data frame ic_df <- as.ic_data(df) }