Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Factors and how to create them
Working with factors
10. Count NAs
Modifying factor variables
Summary

Instruction

Let's check if this works! Try the exercise...

Exercise

Using table(), calculate the number of people in each marital status group (mrt_status column in survey).

Observe that the table() function is explicit about the "(Missing)" level.

Stuck? Here's a hint!

Type:

table(survey$mrt_status)