ncol.soda: The number of rows/columns of a data frame of SODA asset

Description Usage Arguments Value References See Also Examples

Description

nrow and ncol return the number of rows or columns present in x. NCOL and NROW do the same treating a vector as 1-column matrix.

Usage

1
2
## S3 method for class 'soda'
ncol(request, ...)

Arguments

request

a SODA request

...

dot-dot-dot

Value

an integer of length 1 or NULL.

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole (ncol and nrow.)

See Also

dim which returns all dimensions; array, matrix.

Examples

1
2
3
4
5
6
7
ma <- matrix(1:12, 3, 4)
nrow(ma)   # 3
ncol(ma)   # 4

ncol(array(1:24, dim = 2:4)) # 3, the second dimension
NCOL(1:12) # 1
NROW(1:12) # 12

iqis/fountain documentation built on May 24, 2019, 9:54 a.m.