consolidate_moult_records: Consolidate a mixture of continuous and categorical moult...

View source: R/helpers.R

consolidate_moult_recordsR Documentation

Consolidate a mixture of continuous and categorical moult records

Description

This is a helper function to format input data for the Type 1+2 moult model.

Usage

consolidate_moult_records(moult_score, moult_cat)

Arguments

moult_score

a numeric vector of (linearized) moult scores in [0,1] (0 = old plumage,1 = new plumage).

moult_cat

a numeric vector of categorical moult codes (1 = old plumage,2 = moulting, 3 = new plumage)

Value

a numeric vector of scores and categorical records with values [0,1] for old, new and continuous active moult scores, and value 2 for categorical active moult records.


pboesu/moultmcmc documentation built on Feb. 19, 2023, 6:03 a.m.