Warning! It seems that you are using Dodona within another webpage, so not everything may work properly. Let your teacher know so that he can solve the problem by adjusting a setting in the learning environment. In the meantime, you can click this link to open Dodona in a new window.
- 2. R Basics
- 2.1 Case study: US Gun Murders
- 2.2 The very basics
- 2.3.1. Sum of integers 1,...,100
- 2.3.2. Sum of integers 1,...,1000
- 2.3.3. Interpret code
- 2.3.4. Nested functions
- 2.3.5. Interpret code
- 2.4 Data types
- 2.5.1. Variables in a dataframe
- 2.5.2 Variable names
- 2.5.3 Examining Variables
- 2.5.4 Multiple ways to access variables
- 2.5.5 Factors
- 2.5.6 Tables
- 2.6 Vectors
- 2.7 Coercion
- 2.8.1-5. Vectors
- 2.8.6. Vector of numbers 12..73
- 2.8.7. Odd numbers
- 2.8.8. Length of a sequence
- 2.8.9. Class of seq(1, 10, 0.5)
- 2.8.10. Class of seq(1, 10)
- 2.8.11. 1 vs 1L
- 2.8.12. Vector cast
- 2.9 Sorting
- 2.10.1-4. Dataframes 1
- 2.10.5-6. Dataframes 2
- 2.10.7-8. NA
- 2.11 Vector arithmetics
- 2.12.1. Convert Temperatures
- 2.12.2. Vector Sum
- 2.12.3. Vector Mean
- 2.13 Indexing
- 2.14.1-5. Dataframe operations
- 2.14.6. Match function
- 2.14.7-8. Match operator
- 2.15 Basic plots
- 2.16.1. Scatter Plot
- 2.16.2. Histogram
- 2.16.3. Boxplot
Sign in to test your solution.
# Load package and data
library(dslabs)
data(murders)
# Use the accessor to extract state abbreviations and assign it to a
...
# Determine the class of a
...
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.