Data Frames, Arrays, Types of Variables: difficulty 3

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

A table has one row per clinic visit and these columns: visit_date such as 2026-03-04, patient_code such as 00417, pain_rating with values none/mild/moderate/severe, temperature_c in degrees Celsius, and followup_needed with values yes/no. Give an appropriate type for each column and explain why patient_code should not be treated as a numeric measurement.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Data Frames, Arrays, Types of Variables Questions: