variable_check: Check for existiance of variables in a hop object

Description Usage Arguments Value See Also Examples

Description

Checks for existiance of variables within a profile of a hop object

Usage

1
variable_check(hop, profile, variables, error = FALSE)

Arguments

hop

An object of class hop or face.

profile

A character string of the name of the profile to check within.

variables

A character vector of the names of the variables to check for.

error

Logical indicating whehter or not an error should be thrown if any variables in variables are not found.

Value

A logical vector the same length as variables indicating whether each variable is found in hop. If error is TRUE, this vector is returned invisibly.

See Also

Other hisafe helper functions: copy_hisafe_template(), get_pheno_dates(), get_pruning_dates(), hip_params(), hisafe_info(), hisafe_profiles(), hop_filter(), hop_merge(), hop_params(), hop_rename(), is_face(), is_hip(), is_hop(), join_profiles(), make_rel_years(), profile_check(), which_profiles()

Examples

1
2
3
4
## Not run: 
variable_check(myhop, "trees", "carbonBranches")

## End(Not run)

kevinwolz/hisafer documentation built on Oct. 19, 2020, 4:43 p.m.