text2people: Finds some good info related to people

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/functions.R

Description

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

Usage

1
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.

Author(s)

Ryan Elmore

References

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

See Also

curlPerform, getCurlHandle, dynCurlReader

Examples

1
2
3
4
	## Not run: 
		text2people("Tim O'Reilly, Archbishop Huxley")
	
## End(Not run)

RDSTK documentation built on May 29, 2017, 8:30 p.m.