Learn R Programming

genderizeR (version 1.2.0)

findGivenNames: Getting gender prediction data for a given text vector.

Description

findGivenNames extract from text unique terms and gets the gender predicion for all these terms.

Usage

findGivenNames(x, apikey = NULL, queryLength = 10, progress = TRUE,
  ssl.verifypeer = TRUE)

Arguments

x
A text vector.
apikey
A character string with the API key obtained via https://store.genderize.io. A default is NULL, which uses the free API plan.
queryLength
How much terms can be check in a one single query
progress
If TRUE (default) progress bar is displayed in the console
ssl.verifypeer
Checks the SSL Cerftificate. Default is TRUE.

Value

  • A data table with names gener probabilities and counts for terms in given text vector.

Examples

Run this code
grid = (expand.grid(a=letters,b=letters))
findGivenNames(paste0(grid$a,grid$b))

Run the code above in your browser using DataLab