genderdata
data
package is required; you will be prompted to install it if it is not already
available.
gender(names, years = c(1932, 2012), method = c("ssa", "ipums", "napp", "kantrowitz", "genderize", "demo"), countries = c("United States", "Canada", "United Kingdom", "Germany", "Iceland", "Norway", "Sweden"))
c(1880, 1900)
. If no value is specified, then for the "ssa"
method it will use the period 1932 to 2012; acceptable years for the SSA
method range from 1880 to 2012, but for years before 1930 the IPUMS method
is probably more accurate. For the "ipums"
method the default range
is the period 1789 to 1930, which is also the range of acceptable years.
For the "napp"
method the default range is the period 1758 to 1910,
which is also the range of acceptable years. If a year or range of years is
specified, then the names will be looked up for that period."ssa"
method looks up names based from the
U.S. Social Security Administration baby name data. (This method is based
on an implementation by Cameron Blevins.) The "ipums"
method looks
up names from the U.S. Census data in the Integrated Public Use Microdata
Series. (This method was contributed by Ben Schmidt.) The
"kantrowitz"
method uses the Kantrowitz corpus of male and female
names. The "genderize"
method uses the Genderize.io
<http://genderize.io/> API, which is based on "user profiles across
major social networks." The "demo"
method is uses the top 100 names
in the SSA method; it is provided only for demonstration purposes when the
genderdata
package is not installed and it is not suitable for
research purposes."ssa"
and "ipums"
methods, the only valid option is
"United States"
which will be assumed if no argument is specified.
For the "napp"
method, you may specify a character vector with any
of the following countries: "Canada"
, "United Kingdom"
,
"Germany"
, "Iceland"
, "Norway"
, "Sweden"
. For
the "kantrowitz"
and "genderize"
methods, no country should
be specified.gender("madison", method = "demo", years = 1985)
gender("madison", method = "demo", years = c(1900, 1985))
# SSA method
## Not run: gender("madison", method = "demo", years = c(1900, 1985))
# IPUMS method
## Not run: gender("madison", method = "ipums", years = 1860)
# NAPP method
## Not run: gender("madison", method = "napp", countries = c("Sweden", "Denmark"))
Run the code above in your browser using DataLab