remove.elements: Remove Character Elements From a Vector

View source: R/remove.elements.R

remove.elementsR Documentation

Remove Character Elements From a Vector

Description

This function returns a two part list of character vectors. First, the new vector with the removed strings, and second, the vector with the elements that have been removed.

Usage

remove.elements(x, remove.this)

Arguments

x

Provide the character vector to parse.

remove.this

Provide the elements that you want to remove.

Examples

x <- c('MICHAEL','JOHN','LIVINGSTON','III')
remove.elements(x, c('JR','II','III','IV'))

mjfii/Name-Parser documentation built on Aug. 17, 2024, 4:07 a.m.