Session Ready
Exercise

count()

In this exercise, you'll be learning how to use count(). This function is helpful for finding the number of observations in each unique group specified by one or more variables. You will be working with three variables:

  • High_Fevers: Did the participant have high fevers in the last year? (-1: less than 3 months ago, 0: more than 3 months ago, 1: no)
  • Child_Disease: Did the participant suffer from any childhood disease? (1: Yes, 0: No)
  • Accident_Trauma: Did the participant meet with any accident or suffer from serious trauma? (1: Yes, 0: No)
Instructions 1/2
undefined XP
  • 1
  • 2

In the Male Fertility data (fertility), find the number of participants for each level of High_Fevers.