Skip to contents

Return the Last Parts of a chars Object

Usage

# S3 method for class 'chars'
tail(x, ...)

Arguments

x

a chars object.

...

further arguments passed to or from other methods.

Value

the last (n) elements of a chars object as a chars object.

Examples

tail(chars("javascript"))
#> [1] "script"

tail(chars("abcdefghi"))
#> [1] "defghi"