Create a new factor variable (Walkability
) in the BEPAS dataset based on the original one (WALK
).
WALK
is a numerical variable.
The current levels are thus c(“1”, “2”) the new levels should be “Low walkability” and “High walkability”.
(Paste the whole code chunk)