Create combinations with variable sample probability.
lifexp(ntag, colorsname, nspecial = 0, name1 = "Metal", name2 = "EMPTY",
location1 = 1, location2 = 2, nspecial1 = 1, nspecial2 = 1, currentyear = NA,
yearsurvival = 1, lifespan = NA, yearusedcombinations,
usedcombinations, speed = 1, ignorecolor = NA)
Number of tag to be used in each animal.
Names/Code of color tags to be sample.
Number of special tags/codes, such as metallic, "EMPTY", or flag (min 0, max 2).
Name of special tag 1.
Name of special tag 2.
Position (or group of positions) to special band 1.
Position (or group of positions) to special band 2.
Number of special tag 1 that will be present in all sequences genetated.
Number of special tag 2 that will be present in all sequences genetated.
Current year.
An estimation of the proportion of animals that survive between years.
Combinations older the lifespan will be automatically disregard.
The year in which the combination was used.
Pre used combinations.
Speed for color frequency adjustment.
Color to be ignored on lifexp.
A sequencie of tags
allequal genseq vfrequency
# NOT RUN {
data(pre_used) # Data example
# Create an object contain the name/code of tag colors
tcol<-c("Black","Blue","Brown","Gray","Green","Pink","Purple","Red","White","Yellow")
genseq(30, 4,tcol, "lifexp", pre_used[,1:4],
yearusedcombinations=pre_used[,5], yearsurvival= 0.8, lifespan=5, currentyear=2019)
# }
Run the code above in your browser using DataLab