I'm trying to group a variable v_435 (1, 2, 3, 4, 5, 98, 99) out of dataset ARR2 into v_435_low (including variables 1 and 2) and v_435_high (including variables 4 and 5).
Unfortunately I don't know how to exclude 98 and 99 for v_435_high.
My code:
# v_435_low
ARR2%>%
group_by(v_435<=2) %>%
summarize(n=n())%>%
mutate(freq = n / sum(n) )
# v_435_high
ARR2%>%
group_by(**????????????**) %>%
summarize(n=n())%>%
mutate(freq = n / sum(n) )