Learn R Programming

genderizeR (version 1.0.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, queryLength = 400, progress = TRUE)

Arguments

x
A text vector.
queryLength
How much terms can be check in a one single query
progress
If TRUE (default) progress bar is displayed in the console

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