Skip to content

Commit

Permalink
add note about using dplyr 2.0 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarchedi committed Aug 25, 2014
1 parent e4b2b2f commit 5ab2362
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
AnswerTests: omnitest(correctExpr='library(dplyr)')
Hint: Use library(dplyr) to load the dplyr package.

- Class: cmd_question
Output: It's important that you have dplyr version 2.0 or later. To confirm this, type packageVersion("dplyr").
CorrectAnswer: packageVersion("dplyr")
AnswerTests: omnitest(correctExpr='packageVersion("dplyr")')
Hint: Check what version of dplyr you have with packageVersion("dplyr").

- Class: text
Output: If your dplyr version is not at least 2.0, then you should hit the Esc key now, reinstall dplyr, then resume this lesson where you left off.

- Class: cmd_question
Output: "The first step of working with data in dplyr is to load the data into what the package authors call a 'data frame tbl' or 'tbl_df'. Use the following code to create a new tbl_df called cran: \n\ncran <- tbl_df(mydf)."
CorrectAnswer: cran <- tbl_df(mydf)
Expand Down

0 comments on commit 5ab2362

Please sign in to comment.