Trim trailing whitespaces from string.

rtrim(x)

Arguments

x

A text string.

Value

Cleaned string.

Examples

trim("hello ")
#> [1] "hello"