get_characteristics.population: Returns names and C types of the characteristics.

View source: R/model.R

get_characteristics.populationR Documentation

Returns names and C types of the characteristics.

Description

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 class '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))


IBMPopSim documentation built on Oct. 15, 2024, 5:07 p.m.