delstr_endR Documentation

Delete the end of a string

Description

Take a string, then delete the end of this string.

Usage

delstr_end(str, n)

Arguments

str

a string of length nchar(str).

n

an integer. It is the number of characters to delete at the end of the string str

Details

None.

Value

A string of length nchar(str) - n, shortened by its end.

See Also

argchr returns all the instances of chr in str.
first_argchr returns the first instance of chr in str.
delstr_begin deletes the beginning of a string.
delstr_end deletes the end of a string.