Learn R Programming

stplanr (version 0.0.2)

age_recat: Recategorise UK National Travel Survey factor variables

Description

age_recat, age_recat2 and disab_recat are used to re-categorise the UK National Travel Survey (NTS) age band and disability variables for comparison with other datasets. See http://discover.ukdataservice.ac.uk/series/?sn=2000037 for more on accessing the NTS.

Usage

age_recat(a)

age_recat2(a)

disab_recat(a)

Arguments

a
The factor variable supplied by the UK's NTS

Value

  • A factor with new categories for analysis

Details

See Crawford and Lovelace (2015) for an application of these functions.

References

Crawford, F., and Lovelace, R. (2015). The benefits of getting England cycling. Retrieved from http://www.ctc.org.uk/news/20150120-research-shows-growth-cycling-worth-

Examples

Run this code
age_recat("70 + years")

Run the code above in your browser using DataLab