Working with logical vectors

A logical vector is a vector containing the values TRUE and FALSE. The code

tall <- length.cm.all > 190
tall

creates a vector of length 10 called tall containing the value FALSE for the lenghts <= than 190 cm and the value TRUE for the lenghts > 190 cm.

Analoguously, based on cum.weight, create a logical vector of length 10 (called elevator) showing you for each subject whether or not it can enter the elevator given that the maximum allowed total weight is 630 kg (TRUE: the person can enter the elevator, FALSE: the person cannot enter the elevator).