length

All R objects have a length attribute. You can call this function on any R object and it will return a value. The most common usage is to get the length of a vector, but it can be called on anything.

int
length

Meta