R-gon18 / suli-tempestx

repo for Argon SULI analysis
MIT License
0 stars 0 forks source link

Add more data and change file-reading code to handle it #10

Closed bpbond closed 3 years ago

bpbond commented 3 years ago

This PR adds TEMPESTX data through May 2021 (a total of 25 different measurement dates). It also changes the file-reading step to:

dat <- bind_rows(lapply(files, read_tsv, 
                        col_names = c("Timestamp", "Obs", "Port",
                                      "CO2_Flux", "Collar", "CH4_Flux"), 
                        col_types = "_Tdcddd_",
                        skip = 1))

It also uses R's lapply function to run read_tsv for each filename in the folder; the resulting data are then concatenated together using dplyr::bind_rows into a single big data frame.

FYI @ahopple

Closes #8