Number of Rows in a Dataset

DESCRIPTION:

Gives the number of rows in a 1- or 2-dimensional dataset.

USAGE:

count.rows(x, ...) 

REQUIRED ARGUMENTS:

x
1- or 2-dimensional dataset whose row count will be returned.

OPTIONAL ARGUMENTS:

...
If x is a data.sheet object, the column(s) of x whose row count is/are to be returned may be specified.

VALUE:

If x is not a data.sheet object, the number of rows in x (which is length(x) if it is a 1-dimensional dataset). If x is a data.sheet object: if ... specified column(s), the number of rows in each specified column of x ; otherwise, the maximum of the number of rows in all of the columns of x.

SEE ALSO:

, , , .

EXAMPLES:

# return the number of rows in all columns of my.data.sheet 
count.rows(my.data.sheet, seq(length=count.cols(my.data.sheet)))