Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What exactly does lazy do? #1490

Closed
abalter opened this issue Apr 4, 2023 · 1 comment
Closed

What exactly does lazy do? #1490

abalter opened this issue Apr 4, 2023 · 1 comment

Comments

@abalter
Copy link

abalter commented Apr 4, 2023

I just read in a large csv file. I used lazy=T. However, the size of the object I read the file into is the same size as the file itself.

Do I need to do something else to read the table in lazily?

If I am actually able to read in a file lazily, can I use dplyr verbs on it?

> library(tidyverse)
> df = read_csv('mem_detail.csv', lazy=T)
Rows: 61923459 Columns: 28
── Column specification ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> object.size(df)
13048425864 bytes
-rw------- 1 balter  chse    12G Mar 12 19:05 mem_detail.csv
@hadley
Copy link
Member

hadley commented Jul 31, 2023

Duplicate of #1499

@hadley hadley marked this as a duplicate of #1499 Jul 31, 2023
@hadley hadley closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants