get_sinasc: Get live births data for municipalities

Description Usage Arguments Details Value Examples

View source: R/get_sinasc.R

Description

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

Usage

1
get_sinasc(conn, agr, ano = NULL, lucene_query = NULL)

Arguments

conn

Connection object created with pcdas_connect.

ano

numeric. Year of birth.

lucene_query

string. A more complex lucene query can be presented here. The string must be informed using sigle quotes. If used, all other filters will be ignored.

agg

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

Details

This function uses raw data from the Sistema de Informações de Nascidos Vivos (SINASC) available at the PCDaS ElasticSearch cluster. A documentation about this data can be found at https://bigdata-metadados.icict.fiocruz.br/dataset/sistema-de-informacoes-de-nascidos-vivos-sinasc.

Value

A data.frame containing number of live births (sinasc) for the aggregation level.

Examples

1
sinasc <- get_sinasc_mun(conn = conn, ano = 2010, agr = "mun")

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