Returns the number of elements in an object.
For an object of class vec, this will be the length of the vector.
For an object of class corpus,
this will be the sum of the lengths of its constituent sequences.
# S3 method for coded_vec num_elements(x) # S3 method for corpus num_elements(x) num_elements(x) # S3 method for vec num_elements(x)
| x | Object to analyse. | 
|---|
The size of x, as an integer scalar.