Skip to contents

Returns names and C types of the characteristics (other than birth and death) of the individuals in a population, from a population data frame.

Usage

# S3 method for population
get_characteristics(object, ...)

Arguments

object

Object of population class representing a population.

...

additional arguments.

Value

Named vector composed of characteristics names and C types. If the population has no characteristics, which means that it has only the birth and death columns, this returns NULL.

Examples

get_characteristics(population(EW_pop_14$sample))
#>   male 
#> "bool"