Permalink
Please sign in to comment.
Browse files
Add the `exibble` tibble as a dataset (#77)
* Add .R script that creates `exibble` tibble * Add `06-exibble.R` to processing steps * Add `exibble` object as data * Add roxygen documentation for `exibble` dataset * Reflow lines in roxygen documentation * Create help file using roxygen * Update help files using roxygen
- Loading branch information...
Showing
with
137 additions
and 53 deletions.
- +55 −26 R/datasets.R
- +18 −0 data-raw/06-exibble.R
- +2 −1 data-raw/zz_process_datasets.R
- BIN data/exibble.rda
- +38 −0 man/exibble.Rd
- +10 −11 man/pizzaplace.Rd
- +3 −4 man/sp500.Rd
- +11 −11 man/sza.Rd
@@ -0,0 +1,18 @@ | ||
library(tidyverse) | ||
exibble <- | ||
dplyr::tribble( | ||
~num, ~char, ~fctr, ~date, ~time, ~datetime, ~currency, ~row, ~group, | ||
0.1111, "apricot", "one", "2015-01-15", "13:35", "2018-01-01 02:22", 49.95, "row_1", "grp_a", | ||
2.222, "banana", "two", "2015-02-15", "14:40", "2018-02-02 14:33", 17.95, "row_2", "grp_a", | ||
33.33, "coconut", "three", "2015-03-15", "15:45", "2018-03-03 03:44", 1.39, "row_3", "grp_a", | ||
444.4, "durian", "four", "2015-04-15", "16:50", "2018-04-04 15:55", 65100, "row_4", "grp_a", | ||
5550, NA, "five", "2015-05-15", "17:55", "2018-05-05 04:00", 1325.81, "row_5", "grp_b", | ||
NA, "fig", "six", "2015-06-15", NA, "2018-06-06 16:11", 13.255, "row_6", "grp_b", | ||
777000, "grapefruit", "seven", NA, "19:10", "2018-07-07 05:22", NA, "row_7", "grp_b", | ||
8880000, "honeydew", "eight", "2015-08-15", "20:20", NA, 0.44, "row_8", "grp_b", | ||
) %>% | ||
dplyr::mutate(fctr = factor(fctr, levels = c( | ||
"one", "two", "three", "four", "five", "six", "seven", "eight" | ||
)) | ||
) |
Binary file not shown.
0 comments on commit
9c01513