genderizeR (version 1.0.0)

textPrepare: Preparing text vector for gender prediction

Description

textPrepare Takes a text vector and converts it into a vector of single and unique terms.

Usage

textPrepare(x, textPrepMessages = FALSE)

Arguments

x
A vector of character strings.
textPrepMessages
If TRUE verbose output of the prepairing process is shown on the console.

Value

  • A vector of unique terms

Examples

Run this code
x = c("Winston J. Durant, ASHP past president, dies at 84",
"Gold Badge of Honour of the DGAI Prof. Dr. med. Norbert R. Roewer Wuerzburg",
"The contribution of professor Yu.S. Martynov (1921-2008) to Russian neurology",
"JAN BASZKIEWICZ (3 JANUARY 1930 - 27 JANUARY 2011) IN MEMORIAM",
"Maria Sklodowska-Curie")

textPrepare(x)

Run the code above in your browser using DataLab