Skip to content

Commit

Permalink
Update lesson.yaml
Browse files Browse the repository at this point in the history
Sollution swirldev#498

This problem with "!" in the beginning of line:
Hint: !is.na(c(3, 5, NA, 10)) will negate the previous command, thus telling us what is NOT NA.
  • Loading branch information
YHx07 authored Apr 10, 2022
1 parent 42323dc commit 6de9f21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
Output: 'Now, put an exclamation point (!) before is.na() to change all of the TRUEs to FALSEs and all of the FALSEs to TRUEs, thus telling us what is NOT NA: !is.na(c(3, 5, NA, 10)).'
CorrectAnswer: "!is.na(c(3, 5, NA, 10))"
AnswerTests: omnitest('!is.na(c(3, 5, NA, 10))')
Hint: !is.na(c(3, 5, NA, 10)) will negate the previous command, thus telling us what is NOT NA.
Hint: Expression !is.na(c(3, 5, NA, 10)) will negate the previous command, thus telling us what is NOT NA.

- Class: cmd_question
Output: 'Okay, ready to put all of this together? Use filter() to return all rows of cran for which r_version is NOT NA. Hint: You will need to use !is.na() as part of your second argument to filter().'
Expand Down

0 comments on commit 6de9f21

Please sign in to comment.