Removes the trailing characters after and including the last point in a string.

rmext(x)

Arguments

x

Character

Value

character.

Examples

  rmext("some/long.filename.extension")
#> [1] "some/long.filename"