minages <- c(runif(n = 11, min = 10, max = 25), 62.5)
x <- data.frame(species = c(letters[1:10], rep("z", 2)),
min_ma = minages,
max_ma = c(minages[1:11] + runif(n = 11, min = 0, max = 5), 65))
cf_age(x, value = "flagged", taxon = "")
# unique locations only
x <- data.frame(species = c(letters[1:10], rep("z", 2)),
decimalLongitude = c(runif(n = 10, min = 4, max = 16), 75, 7),
decimalLatitude = c(runif(n = 12, min = -5, max = 5)),
min_ma = minages,
max_ma = c(minages[1:11] + runif(n = 11, min = 0, max = 5), 65))
cf_age(x, value = "flagged", taxon = "", uniq_loc = TRUE)
Run the code above in your browser using DataLab