Get Group
ps_get_group(
x,
breaks = c(Recruit = 0, Juvenile = 20, Subadult = 50, Adult = 70)
)
An ordered factor of the group.
ps_get_group(c(-Inf, -1, 0, 19, 20, 69, 70, Inf))
#> [1] <NA> <NA> Recruit Recruit Juvenile Subadult Adult Adult
#> Levels: Recruit < Juvenile < Subadult < Adult