make_rel_years: Convert absolute years to relative years in a hop

Description Usage Arguments Value See Also Examples

Description

Converts absolute years to relative years (minimum year is year 1) in the Year column of all hop elements. Does NOT convert dates in the Date column.

Usage

1
make_rel_years(hop, year1 = NULL)

Arguments

hop

An object of class hop or face.

year1

The year that should be treated as year 1. Must be less than or equal to the minimum year in the hop.

Value

A hop

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(), profile_check(), variable_check(), which_profiles()

Examples

1
2
3
4
5
6
## Not run: 
range(hop$trees$Year)
hop.mod <- make_rel_years(hop)
range(hop.mod$trees$Year)

## End(Not run)

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