removePattern: Removes a specified pattern from a string.

removePatternR Documentation

Removes a specified pattern from a string.

Description

Function remove a specified string from a character vector.

Usage

removePattern ( string, pattern)

Arguments

string

a character vector

pattern

a character pattern

Value

a character string

Author(s)

Sebastian Weirich

Examples

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

eatTools documentation built on Nov. 23, 2023, 5:06 p.m.