cforgaci / r-socialsci

R for Social Scientists
https://datacarpentry.org/r-socialsci/
Other
0 stars 0 forks source link

add chunk to Quarto document to read data file #7

Open eduardklap opened 6 months ago

eduardklap commented 6 months ago

Hi, also on behalf of @bbartholdy. Issue came up during the Data Carpentry workshop today: Here (https://cforgaci.github.io/r-socialsci/08-quarto.html#insert-table) interviews is declared but the data file is not yet declared in the Quarto document. Solution: add a chunk before where the SAFI_clean.csv is read, e.g.:

#| label: setup
#| include: false

library(tidyverse)
library(here)
interviews <- read_csv(here("data/SAFI_clean.csv"), na = "NULL")

See also workshop notes: https://github.com/4TUResearchData-Carpentries/workshop_notes/blob/2403-LDEV-EUR/data-carpentry/documents/awesome-report.qmd

bbartholdy commented 4 months ago

I have updated the materials. There were some additional related issues. I'm leaving the issue open and hopefully @cforgaci or @alwil can give it a quick look before closing.