knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)
Made with

humanparser is a very small package that parses full (human) names into their component parts. Uses code from the node.js humanparser module.

The following functions are implemented:

News

Installation

devtools::install_github("hrbrmstr/humanparser")
options(width=120)

Usage

library(humanparser)

# current verison
packageVersion("humanparser")

# just one

parse_name("John Smith Jr.")

# or a bunch of 'em

full_names <- c("David Regan", "Izaque Iuzuru Nagata", 
                "Christian Schmit de la Breli", "Peter Doyle", "Hans R.Bruetsch", 
                "Marcus Reichel", "Per-Axel Koch", "Louis Van der Walt", 
                "Mario Adamek", "Ugur Tozsekerli", "Judit Ludvai" )

parse_names(full_names)

Test Results

library(humanparser)
library(testthat)

date()

test_dir("tests/")

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



hrbrmstr/humanparser documentation built on May 17, 2019, 5:09 p.m.