extract_people: Extract people's names from a file or website

Description Usage Arguments Details Value Examples

View source: R/misconduct.R

Description

This uses natural language processing to find all potential human names in a web page or file (ideally plain text; csv works). The code within has been developed with the help of Lincoln Mullen's natural-language-processing guide (https://rpubs.com/lmullen/nlp-chapter). However, if you already have people's names (say, at a meeting registration), just use that vector directly – this function might miss or split names it does not recognize.

Usage

1

Arguments

con

A connection object or a character string

text

Raw text

...

Other arguments to pass to readLines

Details

This can use either a URL or file (entered by the con argument) or a vector of text (text). If text is not NULL, it will use the text; otherwise it will use con.

Value

A vector of people's names

Examples

1
nasem <- extract_people(con="http://www.nasonline.org/member-directory/living-member-list.html")

bomeara/misconduct documentation built on Oct. 25, 2020, 4:58 p.m.