Search⌘ K

Exercise 1: Variables

Explore how to determine and print the high-level and low-level data types of variables in R. This lesson helps you practice using cat and print statements to effectively display R data types, building foundational skills in R variable management.

Problem Statement

  • Print the high-level data type of the given variable.
  • Print the low-level data type of the given variable.

Use a cat() statement to display text on the screen, showing the high-level and low-level data types.

Input

A testVariable containing the variable being tested.

Output

The high-level and low-level data types of that variable.

Sample Input

1.9

Sample Output

numeric double

Test Yourself

Write your code in the given area. If you get stuck, you can look at the solution.

R
# Write your code here
cat(" ")