Learn R Programming

RDSTK (version 1.1)

text2people: Finds some good info related to people

Description

This function will return information such as first and last name, title, etc. for a given person or persons.

Usage

text2people(text, session=getCurlHandle())

Arguments

text
A text string containing a person's name or a comma-separated list of names.
session
This is the CURLHandle object giving the structure for the options and that will process the command. For curlMultiPerform, this is an object of class code MultiCURLHandle-class.

Value

A data.frame containing
gender
Gender of the person.
first_name
The person's first name
title
A title associated with this person.
surnames
The person's last name
start_index
The beginning of the matched string in the original string.
end_index
The end of the matched string in the original string.
matched_string
The matched string used to look up this information.

References

http://www.datasciencetoolkit.org/developerdocs#text2people

See Also

curlPerform, getCurlHandle, dynCurlReader

Examples

Run this code
	## Not run: 
# 		text2people("Tim O'Reilly, Archbishop Huxley")
# 	## End(Not run)

Run the code above in your browser using DataLab