get_pop_age: Get population from SVS with sex and age

Description Usage Arguments Value Examples

View source: R/get_pop_age.R

Description

This function retrieves population data from PCDaS ElasticSearch cluster for a specified year.

Usage

1
get_pop_age(conn, ano, agr)

Arguments

conn

Connection object created with pcdas_connect.

ano

numeric. Year.

agg

string. Aggregation level. 'mun' for municipalities, 'uf' for "unidades federativas" or 'regsaude' for "regiões de saúde".

Value

A data.frame containing population for the aggregation level.

Examples

1
pop_df <- get_pop_mun(conn = conn, ano = 2010, agr = "mun")

bigdata-icict/pcdasindi documentation built on March 11, 2020, 5:15 p.m.