Checks if an ypr_population object with valid parameter values.

check_population(x, x_name = NULL)

Arguments

x

The object to check.

x_name

A string of the name of object x or NULL.

Value

An informative error if the test fails or an invisible copy of x.

See also

Examples

check_population(ypr_population())