Skip to contents

Fast last

Usage

flast(x)

Arguments

x

an R object.

Value

Returns the last element of a vector, factor, or any other R object which has a method for the length function.

Examples

flast(1:5) ## 5
#> Error in flast(1:5): could not find function "flast"
flast(letters) ## "z"
#> Error in flast(letters): could not find function "flast"