map_gender: Map the use of Brazilian first names by gender and by state

Description Usage Arguments Details Value Note References See Also Examples

View source: R/map_gender.R

Description

map_gender retrieves data on the number of male or female uses of a given first name by state from the Instituto Brasileiro de Geografia e Estatistica's 2010 Census API.

Usage

1
map_gender(name, gender = NULL)

Arguments

name

A string with a Brazilian first name. The name can also be passed to the function as a full name (e.g., Ana Maria de Souza). get_gender is case insensitive.

gender

A string with the gender to look for. Valid inputs are m, for males, f, for females, and NULL, in which case the function returns results for all persons with a given name.

Details

Information on the gender associated with Brazilian first names was collect in the 2010 Census (Censo Demografico de 2010, in Portuguese), in July of that year, by the Instituto Brasileiro de Demografia e Estatistica (IBGE). The surveyed population includes 190,8 million Brazilians living in all 27 states. According to the IBGE, there are more than 130,000 unique first names in this population.

Value

get_gender returns a tbl_df, tbl, data.frame with the following variables:

Note

Names with different spell (e.g., Ana and Anna, or Marcos and Markos) are considered different names. Additionally, only names with more than 20 occurrences, or more than 15 occurrences in a given state, are considered.

References

For more information on the IBGE's data, please check (in Portuguese): http://censo2010.ibge.gov.br/nomes/

See Also

get_gender

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Map the use of the name 'Joao' for
# males in Brazil by state
map_gender('Joao', gender = 'm')


# Map the use of the name 'Maria'
map_gender('maria')

# The function accepts full names
map_gender('Maria da Silva Santos')

# Or names in uppercase
map_gender('MARIA DA SILVA SANTOS')

genderBR documentation built on May 2, 2019, 8:35 a.m.