Illustration of creating a factor variable

Illustrates how to use quartile and cut function to create a factor
variable from a continuous variable.