0

There is a folder 'C:\tmp_flights.df' that created by disk.frame package , how to import the data into R environment again ? Thanks!

enter image description here

Below code created the disc.frame folder

  library(disk.frame)
    library(nycflights13)
    library(tidyverse)
    library(dplyr)
    library(disk.frame)
    library(data.table)
    
    flights.df <- as.disk.frame(
      flights,
      outdir = "tmp_flights.df",
      overwrite = TRUE
    )
anderwyang
  • 1,801
  • 4
  • 18
  • Hi, could you please add a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) showing how you created this folder (with fake data for ex)? – Paul Mar 28 '22 at 10:03
  • The data *is* in the R environment. After the code you showed, you can us `flights.df` in R using ‘dplyr’ verbs. — Did you check the documentation? It explains this. – Konrad Rudolph Mar 28 '22 at 10:14
  • Thanks, I mean when I exit R environment and reopen R, flights.df will not exist, but the flights.df exist in harddriver. I want to use the harddriver data directly . – anderwyang Mar 28 '22 at 10:28

1 Answers1

1

The function disk.frame reads in an existing disk.frame folder.

Miff
  • 7,486
  • 20
  • 20