File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ class(categories)
373373
374374::::::::::::::::::::::::::::::::::::::: challenge
375375
376- ## Challenge
376+ ## Challenge 3
377377
378378Can you guess why these numbers are used to represent these countries?
379379
@@ -389,7 +389,7 @@ They are sorted in alphabetical order
389389
390390::::::::::::::::::::::::::::::::::::::: challenge
391391
392- ## Challenge 3
392+ ## Challenge 4
393393
394394Convert the ` country ` column of our ` nordic ` data frame to a factor. Then try
395395converting it back to a character vector.
@@ -402,7 +402,7 @@ Remember that you can reload the `nordic` data frame using
402402
403403::::::::::::::: solution
404404
405- ## Solution to Challenge 3
405+ ## Solution to Challenge 4
406406
407407Converting character vectors to factors can be done using the ` factor() `
408408function:
@@ -508,7 +508,7 @@ str(nordic[1, ])
508508
509509::::::::::::::::::::::::::::::::::::::: challenge
510510
511- ## Challenge 4
511+ ## Challenge 5
512512
513513There are several subtly different ways to call variables, observations and
514514elements from data frames:
@@ -527,7 +527,7 @@ Try out these examples and explain what is returned by each one.
527527
528528::::::::::::::: solution
529529
530- ## Solution to Challenge 4
530+ ## Solution to Challenge 5
531531
532532``` {r, eval=TRUE, echo=TRUE}
533533nordic[1]
You can’t perform that action at this time.
0 commit comments