Learn R Programming

IBMPopSim (version 1.1.0)

get_characteristics.population: 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 population
get_characteristics(object, ...)

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.

Arguments

object

Object of population class representing a population.

...

additional arguments.

Examples

Run this code
get_characteristics(population(EW_pop_14$sample))

Run the code above in your browser using DataLab