Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tbl_lazy

Create a local lazy tibble


Description

These functions are useful for testing SQL generation without having to have an active database connection. See simulate_dbi() for a list available database simulations.

Usage

tbl_lazy(df, con = NULL, src = NULL)

lazy_frame(..., con = NULL, src = NULL)

Examples

library(dplyr)
df <- data.frame(x = 1, y = 2)

df_sqlite <- tbl_lazy(df, con = simulate_sqlite())
df_sqlite %>% summarise(x = sd(x, na.rm = TRUE)) %>% show_query()

dbplyr

A 'dplyr' Back End for Databases

v2.1.1
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], Maximilian Girlich [aut], Edgar Ruiz [aut], RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.