From 3e177dd093d02d2cc29aa741f422e9c5ccbc35bc Mon Sep 17 00:00:00 2001 From: hadley Date: Thu, 14 Jul 2016 10:05:20 -0400 Subject: [PATCH] Import fixes --- import.Rmd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/import.Rmd b/import.Rmd index 8c20b26..ccf0729 100644 --- a/import.Rmd +++ b/import.Rmd @@ -126,7 +126,7 @@ If you've used R before, you might wonder why we're not using `read.csv()`. Ther use `read_delim()` instead. What arguments do you need to specify to read the following text into a data frame? - ```{r} + ```{r, eval = FALSE} "x,y\n1,'a,b'" ``` @@ -330,8 +330,8 @@ Day : `%e` (optional leading space). Time -: `%H` 0-24 hour. -: `%I` 1-12, must be used with `%p`. +: `%H` 0-23 hour. +: `%I` 0-12, must be used with `%p`. : `%p` AM/PM indicator. : `%M` minutes. : `%S` integer seconds. @@ -382,8 +382,8 @@ parse_date("1 janvier 2015", "%d %B %Y", locale = locale("fr")) d1 <- "January 1, 2010" d2 <- "2015-Mar-07" d3 <- "06-Jun-2017" - d4 <- "August 19 (2015)" - d5 <- "12/30/14" # Dec 12, 2014 + d4 <- c("August 19 (2015)", "July 1 (2015)") + d5 <- "12/30/14" # Dec 30, 2014 t1 <- "1705" t2 <- "11:15:10.12 PM" ``` @@ -599,7 +599,7 @@ This makes csvs a little unreliable for caching interim results - you need to re #> # ... with 1,994 more rows ``` -feather tends to be faster than rds and is usable outside of R. `rds` supports list-columns (which you'll learn about in [[Many models]]), which feather currently does not. +feather tends to be faster than rds and is usable outside of R. `rds` supports list-columns (which you'll learn about in [Many models]), which feather currently does not. ```{r, include = FALSE} file.remove("challenge-2.csv")