SafeGraphInc / SafeGraphR

R code for common, repeatable data wrangling and analysis of SafeGraph data
https://safegraphinc.github.io/SafeGraphR/
Apache License 2.0
16 stars 4 forks source link

Number of files (0) does not match number of start_dates (1) to go along with them #12

Open bcongelio opened 2 years ago

bcongelio commented 2 years ago

Hello -

I am running the following code on data downloaded directly from the SafeGraph Shop:

pitt.data <- read_shop(
  filename = "safe-graph-data.zip",
  keeplist = c("patterns", "home_panel_summary.csv"),
  by = "placekey",
  expand_int = "visitors_by_day",
  name = "visits",
  start_date = lubridate::ymd("2018-01-01"))

However, doing so results in the following error:

Error in read_many_patterns(filelist = patfiles, dir = exdir, recursive = FALSE,  : 
  Number of files (0) does not match number of start_dates (1) to go along with them.

My desired result is having the visitors by day calculated for each placekey by day (2018-01-01, 2018-01-02, etc., etc.).

Looking forward to a response.