Thanks technocrat. I think my original post was vague.
By appending some code hopefully I explain myself better.
Starting with some counts:
df <- data.frame(
zone_1 = rpois(10, 5),
zone_2 = rpois(10, 5),
zone_3 = rpois(10, 5)
)
This provides a df such as:
zone_1 zone_2 zone_3
1 7 4 7
2 5 7 7
3 7 10 7
4 5 3 3
5 1 6 7
6 7 5 6
7 4 4 4
8 5 3 6
9 5 6 5
10 6 4 6
Now if I apply a filter such as -
df %>% filter_all(all_vars (.> 5))
It only returns the one row as all other rows have at least one value less than 5.
zone_1 zone_2 zone_3
1 7 10 7
Rather than omit the values, the aim is to retain the original table structure but substitute values 5 or less with "<5" where applicable.