digital-wellbeing / platform-study-rr

0 stars 0 forks source link

Add geo to Generate Synthetic Data pipeline #10

Closed andreifoldes closed 1 month ago

andreifoldes commented 1 month ago

The 0_generateSyntheticData.qmd is awesome, but we could add Geo...

nballou commented 1 month ago

geo is part of Intake at the moment (named region), so you can do

panel <- read_csv("data-synthetic/synPanel.csv") |> 
  left_join(read_csv("data-synthetic/synIntake.csv"), by = "pid") |> 
  filter(region == "US")

does that meet your needs or do you need them saved separately?

andreifoldes commented 1 month ago

Ah yes thank you! I missed that!