Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions episodes/03-data-structures-part1.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ class(categories)

::::::::::::::::::::::::::::::::::::::: challenge

## Challenge
## Challenge 3

Can you guess why these numbers are used to represent these countries?

Expand All @@ -389,7 +389,7 @@ They are sorted in alphabetical order

::::::::::::::::::::::::::::::::::::::: challenge

## Challenge 3
## Challenge 4

Convert the `country` column of our `nordic` data frame to a factor. Then try
converting it back to a character vector.
Expand All @@ -402,7 +402,7 @@ Remember that you can reload the `nordic` data frame using

::::::::::::::: solution

## Solution to Challenge 3
## Solution to Challenge 4

Converting character vectors to factors can be done using the `factor()`
function:
Expand Down Expand Up @@ -508,7 +508,7 @@ str(nordic[1, ])

::::::::::::::::::::::::::::::::::::::: challenge

## Challenge 4
## Challenge 5

There are several subtly different ways to call variables, observations and
elements from data frames:
Expand All @@ -527,7 +527,7 @@ Try out these examples and explain what is returned by each one.

::::::::::::::: solution

## Solution to Challenge 4
## Solution to Challenge 5

```{r, eval=TRUE, echo=TRUE}
nordic[1]
Expand Down
Loading