datasus.lang: Returns datasus' Package Default Language Setup

Description Usage Details Value Note Author(s) See Also Examples

View source: R/datasus.R

Description

datasus.lang returns the current selected language as a two character code.

Usage

1

Details

The value returned by this function is set internally by a previous call to datasus.init. This value is used as a default language for every data access function of this package to define the language of the dataset column headers.

To provide more flexibility, every data access function has a parameter called language that can be used to override the initial language setting at runtime.

Current supported languages are "pt" (Brazilian Portuguese) and "en" (English).

Value

The default language code as set by a previous call to datasus.init

Note

DATASUS is the name of the Department of Informatics of the Brazilian Unified Health System (SUS) and is resposible for publishing public healthcare data. Besides the DATASUS, the Brazilian National Agency for Supplementary Health (ANS) also uses this file format for its public data. The name DATASUS is also often used to represent the public datasets they provide.

Neither this project, nor its author, has any association with the brazilian government.

Author(s)

Daniela Petruzalek, daniela.petruzalek@gmail.com

See Also

read.dbc

Examples

1
2
# Show current default language
datasus.lang()

danicat/datasus documentation built on Feb. 8, 2020, 1:18 p.m.