Skip to content

Commit

Permalink
minor code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kflahertywalia committed Aug 28, 2024
1 parent a498a80 commit 3378258
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/figs.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# setup ---------------------------------------------------------------------------------------

library(tidyverse)
library(lubridate)
library(EnvStats)
Expand Down Expand Up @@ -50,10 +49,10 @@ FLUC <- spp %>%
DominantVeg == "Halodule spp." ~ "Halodule",
DominantVeg == "Syringodium spp." ~ "Syringodium",
DominantVeg == "Ruppia spp." ~ "Ruppia",
# DominantVeg == "Seagrasses: Mixed" ~ "Mixed",
DominantVeg == "None" ~ "None",
DominantVeg %in% c("Algae","Algae: Filamentous green","Algae: Filamentous red","Caulerpa spp.",
"Gracillaria","Sargasum spp.") ~ "Algae",
"Gracillaria","Sargassum spp.") ~ "Algae",
DominantVeg %in% c("Caulerpa spp.", "Halophila spp.","Seagrasses: Mixed") ~"Mixed/OtherSAV",
TRUE ~ "Mixed/OtherSAV" # Default case if none of the above
),
TBEP_seg = factor(TBEP_seg, levels = segshr),
Expand Down

0 comments on commit 3378258

Please sign in to comment.