text2people: Finds some good info related to people.

Description Usage Arguments Value References See Also Examples

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 = RCurl::getCurlHandle())

Arguments

text

A text string containing a person's name or a comma-separated list of names.

session

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

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

## End(Not run)

rtelmore/RDSTK documentation built on May 12, 2019, 4:26 p.m.