BEPAS 2.8 Factor vectors

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”. (see slides session 2)

Use the boxplot() function to plot BMI and MVPA_acc by the new variable Walkability.