# C Exercise 01

Last updated: 2020-09-28 17:50:13

## C.1 Question 1

• On R start-up, several sample datasets are loaded
• Two of them are:
• state.name - Names of US states
• state.area - Corresponding state area size, in square miles
• Create a vector of state area sizes in $$km^2$$
• Print a subset of state names for states whose areas are smaller than 10,000 $$km^2$$
• Note: you need to convert from square miles to $$km^2$$!
## [1] "Delaware"     "Rhode Island"

(50 points)

## C.2 Question 2

• Use the state.name and state.area vectors and write an expression that prints the name of the state which has the smallest area in the US
• Note: do not use the specific values 39 or "Rhode Island" in your code!
## [1] "Rhode Island"

(50 points)