Function to make a Hossfeld Growth Object

Share:

Description

Takes a data-frame with at minimum columns size and sizeNext; and fits a Hossfeld type growth function to increment - if length(dataf$incr) is zero, it will calculate dataf$increment as the difference between size and sizeNext; otherwise it will take the column provided

Usage

1

Arguments

dataf

a dataframe with columns ‘size’ and ‘sizeNext’(‘size’ is size at t, ‘sizeNext’ is size at t+1);

Value

Returns a growth object of class growthObjHossfeld for which growth methods exist.

Author(s)

C. Jessica E. Metcalf, Sean M. McMahon, Roberto Salguero-Gomez & Eelke Jongejans

Examples

1
2
dff <- generateData()
gr1 <- makegrowthObjHossfeld(dff)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.