numobs

function defined in module MLUtils


			numobs(data)

Return the total number of observations contained in data.

If data does not have numobs defined, then this function falls back to length(data). Authors of custom data containers should implement Base.length for their type instead of numobs. numobs should only be implemented for types where there is a difference between numobs and Base.length (such as multi-dimensional arrays).

See also getobs