Description Usage Arguments Details Examples
Adjusts the number of rings.
1 2 |
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) |
If the counting of rings does not start at the hatch check, this function adjusts the values given by oto_makro.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.