removePattern: Removes a specified pattern from a string.

Description Usage Arguments Value Author(s) Examples

Description

Function remove a specified string from a character vector.

Usage

1
removePattern ( string, pattern)

Arguments

string

a character vector

pattern

a character pattern

Value

a character string

Author(s)

Sebastian Weirich

Examples

1
2
str <- c(".d1.nh.120", "empty", "110", ".nh.dgd", "only.nh")
removePattern(str, ".nh.")

eatRep documentation built on May 2, 2019, 5:40 p.m.