knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
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:
parse_name
: Parse a "human" name into componentsparse_names
: Parse a character vector of names into a data framedevtools::install_github("hrbrmstr/humanparser")
options(width=120)
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)
library(humanparser) library(testthat) date() test_dir("tests/")
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.