Learn R Programming

dibble (version 0.3.0)

nrow-ncol: The number of rows/columns

Description

nrow() and ncol() return the number of rows or columns present in x.

Usage

nrow(x, ...)

# S3 method for default nrow(x, ...)

# S3 method for ddf_col nrow(x, ...)

# S3 method for tbl_ddf nrow(x, ...)

ncol(x, ...)

# S3 method for default ncol(x, ...)

# S3 method for ddf_col ncol(x, ...)

# S3 method for tbl_ddf ncol(x, ...)

Value

An integer or NULL.

Arguments

x

An object.

...

Other arguments passed on to methods.

Details

These functions override base functions to make them generic. The default methods call the base versions.