Extract value at age from vpadata
extract_x(vpadata, x, year, mean_by = NULL)
Arguments
- vpadata
Object return from vpa
- x
Character one of 'f', 'c', 'w', 'n', 's' or 'wc'
- mean_by
If non-null, return mean value:
- "age"
Return values averaged by age
- "year"
Return values averaged by year