4 ms·
a[-2] is valid R syntax. A negative index means that element is omitted from the result, so a[-2] is a without the second element.
by capnrefsmmat 10y ago
a[-2] is valid R syntax. A negative index means that element is omitted from the result, so a[-2] is a without the second element.