length.out: integer indicating how many element are desired. If positive, return the length.out last elements of x; if negative, the last length.out elements are dropped.
na.rm: logical indicating if the last non-missing value (if any) shall be returned. By default (it is FALSE and) the last elements (whatever its values) are returned.
Returns
a vector of length abs(length.out) of last values from x.