sinasc_nv_mun: Scrapes SINASC data from cities

Description Usage Arguments Value Author(s) See Also Examples

Description

This function allows the user to retrive data from SINASC database much in the same way that is done by the online portal. The argument options refer to data focused on brazilian cities.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
sinasc_nv_mun(linha = "Município", coluna = "Não ativa",
  conteudo = 1, periodo = "last", municipio = "all", capital = "all",
  cir = "all", macrorregiao_de_saude = "all", microrregiao_ibge = "all",
  ride = "all", territorio_da_cidadania = "all", mesorregiao_pndr = "all",
  amazonia_legal = "all", semiarido = "all", faixa_de_fronteira = "all",
  zona_de_fronteira = "all", municipio_de_extrema_pobreza = "all",
  local_ocorrencia = "all", idade_da_mae = "all", instrucao_da_mae = "all",
  estado_civil_mae = "all", duracao_gestacao = "all", tipo_de_gravidez = "all",
  tipo_de_parto = "all", consult_pre_natal = "all", sexo = "all", cor_raca = "all",
  apgar_1_minuto = "all", apgar_5_minuto = "all", peso_ao_nascer = "all",
  anomalia_congenita = "all", tipo_anomal_congen = "all")

Arguments

linha

A character describing which element will be displayed in the rows of the data.frame. Defaults to "Município".

coluna

A character describing which element will be displayed in the columns of the data.frame. Defaults to "Não ativa".

conteudo

A character of length = 1 with the state's acronym of interest.

periodo

A character vector describing the period of data. Defaults to the last available.

municipio

"all" or a numeric vector with the IBGE's city codes codes to filter the data. Defaults to "all".

capital

"all" or a numeric vector with the IBGE's cities codes to filter the data. Defaults to "all".

cir

"all" or a numeric vector with the CIR's codes to filter the data. Defaults to "all".

macrorregiao_de_saude

"all" or a numeric vector with the Health macro-region's codes to filter the data. Defaults to "all".

microrregiao_ibge

"all" or a numeric vector with the IBGE's micro-region codes to filter the data. Defaults to "all".

ride

"all" or a numeric vector with the IBGE's metropolitan-region codes to filter the data. Defaults to "all".

territorio_da_cidadania

"all" or a numeric vector with the territory of citizenship codes to filter the data. Defaults to "all".

mesorregiao_pndr

"all" or a numeric vector with the PNDR's mesoregion codes to filter the data. Defaults to "all".

amazonia_legal

"all" or a character ("Sim" or "Não") indicating if only the Legal Amazon region must be included. Defaults to "all".

semiarido

"all" or a character ("Sim" or "Não") indicating if only the semiarid region must be included. Defaults to "all".

faixa_de_fronteira

"all" or a character ("Sim" or "Não") indicating if only the border area must be included. Defaults to "all".

zona_de_fronteira

"all" or a character ("Sim" or "Não") indicating if only the border strip must be included. Defaults to "all".

municipio_de_extrema_pobreza

"all" or a character ("Sim" or "Não") indicating if only the municipalities of extreme poverty must be included. Defaults to "all".

local_ocorrencia

"all" or a character vector with the place of ocurrence to filter the data. Defaults to "all".

idade_da_mae

"all" or a character vector with the age range (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

instrucao_da_mae

"all" or a character vector with the mother's instruction (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

estado_civil_mae

"all" or a character vector with the marital status of the mother (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

duracao_gestacao

"all" or a character vector with the marital status of the mother (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

tipo_de_gravidez

"all" or a character vector with the type of pregnancy (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

tipo_de_parto

"all" or a character vector with the Parturition type (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

consult_pre_natal

"all" or a character vector with the amount of prenatal consultation (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

sexo

"all" or a character vector with the gender (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

cor_raca

"all" or a character vector with the color/race (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

apgar_1_minuto

"all" or a character vector with the value of the apgar exam of the first minute (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

apgar_5_minuto

"all" or a character vector with the value of the apgar exam of the fifth minute (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

peso_ao_nascer

"all" or a character vector with the birth weight (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

anomalia_congenita

"all" or a character vector with the indicative of congenital anomaly (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

tipo_anomal_congen

"all" or a character vector with the congenital anomaly type (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

Value

The function returns a data frame printed by parameters input.

Author(s)

Renato Prado Siqueira <rpradosiqueira@gmail.com>

See Also

sinasc_nv_uf

Examples

1
2
3
4
5
## Not run: 
## Requesting data from the city of Campo Grande/MS
sinasc_nv_mun(municipio = 500270)

## End(Not run)

datasus documentation built on June 10, 2019, 1:02 a.m.