lastn function

Extract the last n elements of a vector