adjust_age: adjust_age

Description Usage Arguments Details Examples

View source: R/adjust_age.R

Description

Adjusts the number of rings.

Usage

1
2
adjust_age(x, value = NULL, mean = NULL, sd = NULL, data = NULL,
  names = NULL)

Arguments

x

an output from oto_makro to be corrected

value

a vector with values tp be added to ring_no

mean

a vector with values to be matched with hc

sd

a vector indicating the possible error of the values given in mean

data

instead of passing value, mean and sd you can simply pass a dfr including all three values. In that case, names is needed.

names

a character vector of length 3 indicating which column in data represents which argument needed in adjust_rings (value, mean, sd)

Details

If the counting of rings does not start at the hatch check, this function adjusts the values given by oto_makro.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#rm(list = ls())
x <- makro_output
data <- data.frame(ring_no = c(1:10),
                   mean = sort(seq(from = 5, to = 15, length.out = 10) + runif(10, -1, 1)),
                   sd = runif(10, 0, 2))
names <- c("ring_no", "mean", "sd")
#using data:
adjust_age(x, data = data, names = names)
#without using data:
adjust_age(x, data$ring_no, data$mean, data$sd)

reneplonus/ototools documentation built on May 3, 2019, 4:05 p.m.