trim_semi_colon: Trim trailing semi-colon from strings

Description Usage Arguments Value Examples

View source: R/short_generic.R

Description

Remove the trailing semi-colon from each string in a vector of strings

Usage

1

Arguments

x

a character vector

Value

A vector x of strings with trailing semi-colons stripped out

Examples

1
2
3
4
5
# Example vector
observers = c("Austin;Wesley;", "Losee;Madel", "Morris;Starling;")

# Trim the trailing semi-colon
observers_fixed = trim_semi_colon(observers)

arestrom/remisc documentation built on Oct. 7, 2017, 4:57 p.m.