Learn R Programming

SCDB (version 0.5.1)

nrow: nrow() but also works on remote tables

Description

nrow() but also works on remote tables

Usage

nrow(.data)

Value

The number of records in the object.

Arguments

.data

(data.frame(1), tibble(1), data.table(1), or tbl_dbi(1))
Data object.

Examples

Run this code
if (FALSE) { # requireNamespace("RSQLite", quietly = TRUE)
  conn <- get_connection()

  m <- dplyr::copy_to(conn, mtcars)
  nrow(m) == nrow(mtcars) # TRUE

  close_connection(conn)
}

Run the code above in your browser using DataLab