crop: Remove Trailing and Leading Characters From Character Strings

Description Usage Arguments Author(s)

Description

Similarly to the function trim from the gdata package, this function can be used to remove trailing and leading spaces from character strings. However, in contrast to trim, any character can be removed by crop.

Usage

1
crop(x, char = " ")

Arguments

x

character string

char

character to be removed from beginning and end of x

Author(s)

Martin Hecht, Sebastian Weirich


eatTools documentation built on May 2, 2019, 4:44 p.m.

Related to crop in eatTools...