first#

swordfish.function.first()#

Return the first element of a vector, or the first row of a matrix or table.

If the first element is a null value, the function returns NULL. To get the first non-null element, use firstNot.

参数:

X (Constant) -- A scalar, pair, vector, matrix or table.