Learn R Programming

replyr (version 0.3.01)

replyr_nrow: Compute number of rows of a tbl.

Description

Number of row in a table. This function is not "group aware" it returns the total number of rows, not rows per dplyr group. Also replyr_nrow depends on data being returned to count, so some corner cases (such as zero columns) will count as zero rows.

Usage

replyr_nrow(x)

Arguments

x

tbl or item that can be coerced into such.

Value

number of rows

Examples

Run this code

d <- data.frame(x=c(1,2))
replyr_nrow(d)

Run the code above in your browser using DataLab