chomp: Chomp off leading/trailing whitespace

Description Usage Arguments Details Examples

Description

Much needed function to chomp the leading/trailing whitespace from a string.

Usage

1
chomp(x)

Arguments

x

String to chomp()

Details

just a wrapper around gsub("^\s+|\s+$", "", <string>)

Examples

1
chomp(x = "  This is an unruly string  ")

townleym/mMisc documentation built on May 6, 2019, 10:52 a.m.