Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion 02_connectscripts/01_update_baro_tables.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,10 @@ for(i in 1:nrow(newfiles)){
if(nrow(tempdata) == 0) {next} #if the file is empty, skip it
tempdata <- tempdata[, 2:4]
colnames(tempdata) <- c("dtime", "baro_psi", "temp_f")
tempdata$dtime <- mdy_hms(tempdata$dtime, tz = "America/New_York")
# Read dtime with EST time zone and change to America/New_York
tempdata <- temp_data |>
mutate(dtime = mdy_hms(dtime, tz = "EST"),
dtime = with_tz(dtime, tz = "America/New_York"))
tempdata$baro_rawfile_uid <- newfiles$baro_rawfile_uid[i]
tempdata <- tempdata[complete.cases(tempdata[, 1:3]),] #Purge NA rows from the final data set

Expand Down