remove a specified number of points from the beginning and end of a vector

unpad(x, n)

Arguments

x

Vector to unpad/trim

n

Number of points to remove