ncol
From STX Wiki
Jump to navigationJump to search
Returns the number of columns of the argument x.
- Usage
ncol(x)
- Result
- The result of this function is the number of columns of x. If x is a scalar or a vector, the result is 1. The function cols(x) and the special bracket form |x| can be used as alias for ncol.
- See also
- nrow