Skip to content

Commit

Permalink
Include raw diamonds source
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Jun 15, 2015
1 parent 5929f1e commit 4c67891
Show file tree
Hide file tree
Showing 4 changed files with 53,952 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ visual_test
^inst/web$
^notes$
^cran-comments.md$
^data-raw$
10 changes: 10 additions & 0 deletions data-raw/diamonds.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
library(readr)
diamonds <- read_csv("data-raw/diamonds.csv", col_types =
list(
cut = col_factor(c("Fair", "Good", "Very Good", "Premium", "Ideal"), TRUE),
color = col_factor(c("D", "E", "F", "G", "H", "I", "J"), TRUE),
clarity = col_factor(c("I1", "SI2", "SI1", "VS2", "VS1", "VVS2", "VVS1", "IF"), TRUE)
)
)

devtools::use_data(diamonds, overwrite = TRUE)
Loading

0 comments on commit 4c67891

Please sign in to comment.