as.ic_data.Rd
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)
... | Elements to be combined into an |
---|---|
object | Any |
An object of type ic.df
.
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.
if (FALSE) { # convert data.frame to an imcover data frame ic_df <- as.ic_data(df) }