Hi everyone I am trying to assign categories to a range of values in a column that has a range of values from 365-433. I tried to use the case_when function and mimicked the syntax from the documentation as best I could but didn't seem to have the desired output. For clarification I am trying to designate data points with "Quadrant" values between 365-422 as "Transit", "Quadrant" values == to 424 as "ZOI", and "Quadrant" values == to 423 AND between 425-433 as "Adjacent". The last one is a bit tricky, because my focus is on that one 424 polygon, so if anyone has insight as to how I can account for that weird overlap in conditions I would so appreciate it.
Thanks!
sightingsData$quadID <- sightingsData$Quadrant
case_when(
sightingsData$Quadrant %% 422 <= 0 ~ "Transit"
sightingsData$Quadrant %% 424 == 0 ~ "ZOI"
sightingsData$Quadrant %% 423 >= 0 ~ "Adjacent"
)
