Skip to content

Commit

Permalink
Fix bug in setting STP NA values
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Jul 22, 2024
1 parent e24c34b commit c5c0a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/process_csv.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
sprintf("%s%s", 1, DT$STP),
STP, na = NA)]

DT[, STP := fifelse(STP_ATTRIBUTES == 0, NA, STP)]
DT[, STP := fifelse(STP_ATTRIBUTES == " 0", NA, STP)]

# Add and convert date related columns ---------------------------------------
DT[, YEARMODA := as.Date(DATE, format = "%Y-%m-%d")]
Expand Down

0 comments on commit c5c0a3d

Please sign in to comment.