My data is
Age
1: 13
2: 4
3: 14
4: 52
5: 63
6: 25
7: 53
I want a variable stating the following characterization: If age 1-13 -> e, if age 14-25 -> b, if age 26-100 -> d
Desired output
Age Characterization
1: 13 e
2: 4 e
3: 14 b
4: 52 d
5: 63 d
6: 25 b
7: 53 d
Input
structure(list(Age = c(13L, 4L, 14L, 52L, 63L, 25L, 53L)), row.names = c(NA,
-7L), class = c("data.table", "data.frame"))