Cut
cut will create an ordered factor factor, that cuts the variable into bins.
cut(age; c(18; 25; 40; 65; 90)).
where:
- 19 and 90 are the two boundary points
- 25, 40 and 65 are the interior cut points.
cut will create an ordered factor factor, that cuts the variable into bins.
cut(age; c(18; 25; 40; 65; 90)).
where: