cut will create an ordered factor factor, that cuts the variable into bins.
cut(age; c(18; 25; 40; 65; 90)).
where: