assign_ages {halk} | R Documentation |
Assign ages to non-aged data based on a fitted age model
Description
Assign ages to non-aged data based on a fitted age model
Usage
assign_ages(newdata, object, ...)
Arguments
newdata |
A vector or data.frame with size/length measurements |
object |
An object of class "alk", "halk_fit" as
produced by |
... |
Additional parameters to pass to the S3 object methods |
Value
A data.frame the same as newdata
, but with ages assigned based
on the model provided in object
Examples
spp_alk <- make_halk(spp_data, levels = "spp")
spp_est_ages <- assign_ages(spp_data, spp_alk)
[Package halk version 0.0.5 Index]