Skip to content

Commit

Permalink
Removed Spawn_Type for TP and TSS
Browse files Browse the repository at this point in the history
  • Loading branch information
donco committed Aug 27, 2020
1 parent 50fdc21 commit 878dfe5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/which_target_df.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ which_target_df <- function(df, all_obs = TRUE){
# Print if result is in spawn or out of spawn
Spawn_type = ifelse((sample_datetime >= Start_spawn & sample_datetime <= End_spawn & !is.na(Start_spawn)), "Spawn", "Not_Spawn")
) %>% dplyr::select(-season_start, -season_end)

df <- df %>% dplyr::mutate(Spawn_type = case_when((Char_Name %in% c("Total Phosphorus, mixed forms", "Total suspended solids")) ~ NA_character_,
TRUE ~ as.character(Spawn_type)))
}

return(df)
Expand Down

0 comments on commit 878dfe5

Please sign in to comment.