coerce_ccmpp_input_list: Coerce to a 'ccmpp_input_list'

coerce_ccmpp_input_listR Documentation

Coerce to a ccmpp_input_list

Description

These functions coerce an object to a ccmpp_input_list if possible, or check if it is one. The list method requires that the names of the single argument match the arguments to link{ccmpp_input_list}.

Usage

as_ccmpp_input_list(x, ...)

## Default S3 method:
as_ccmpp_input_list(x, ...)

## S3 method for class 'list'
as_ccmpp_input_list(x, ...)

## S3 method for class 'ccmpp_input_list'
as_ccmpp_input_list(x, ...)

is_ccmpp_input_list(x)

Arguments

x

An object to coerce or check.

...

Further arguments passed to specific methods.

Value

A coerced object in the case of the as_... functions; a logical for the is_... functions.

Author(s)

Mark Wheldon

See Also

coerce_demog_change_component_df for an important note on validation.


markalava/ccmppWPP documentation built on April 21, 2022, 12:36 a.m.