Parent-offspring pairs are counted between potential offspring cohort and
potential parents grouped by age, year, and location of sampling.
Adults are included in potential offspring.
Usage
as_pop(samples, min_adult_age = 4L)
write_pop(x, path = "pop.txt")
read_pop(path)
Arguments
- samples
A sample_family
data.frame of tekka()
result.
- min_adult_age
integer
- x
An outcome of as_pop()
- path
A file name or connection to write to
Value
A data.frame with "pop" class and six columns:
cohort
: birth year of offspring
capture_year
: of parents
capture_age
: of parents
location
: where parents were sampled
pops
: the number of parent-offspring pairs
comps
: the number of possible comparisons
Details
as_pop()
converts a sample_family
data frame to POP format.
write_pop()
writes a POP data.frame to a file.