Skip to contents

This function removes any digits occurring at the end of a given string.

Usage

removeDigitsAtEnd(string)

Arguments

string

The input string from which digits are to be removed

Value

The modified string with digits removed from the end

Examples

removeDigitsAtEnd("abc123")  # Output: "abc"
#> [1] "abc"
removeDigitsAtEnd("xyz")     # Output: "xyz"
#> [1] "xyz"