I am only in an introductory R class, so this is probably quite basic.
I am using the Outlook on Life dataset and am interested in Income. Respondents had to choose one of the following 19 choices:
Less than $5,000
$5,000 to $7,499
$7,500 to $9,999
$10,000 to $12,499
$12,500 to $14,999
$15,000 to $19,999
$20,000to $24,999
$25,000 to $29,999
$30,000 to $34,999
$35,000 to $39,999
$40,000 to $49,999
$50,000 to $59,999
$60,000 to $74,999
$75,000 to $84,999
$85,000 to $99,999
$100,000 to $124,999
$125,000 to $149,999
$150,000 to $174,999
$175,000 or more
I want to collapse and simplify this to the following just to make plots more intelligible:
- Under poverty line ($0 - 24,999),
- Working class ($25,000 - 34,999),
- Lower middle class ($35,000 - 60,000),
- Middle class ($60,000 - 100,000),
- Upper middle class ($100,000 - 150,000),
- Top 5 percent ($150,000 +).
How would I go about recoding this?
Thank you!