From 46c395a95400e620d08e06fadd296194e3f51f8e Mon Sep 17 00:00:00 2001 From: Vebash Naidoo <50318861+sciencificity@users.noreply.github.com> Date: Mon, 8 Feb 2021 18:31:26 +0200 Subject: [PATCH] Potential typo? (#897) I don't know if it was meant to be this way, because it's actually not weird to say `data time` but assuming it was meant to be `date time` I amended: regular data time `lubridate::as_date_time()` -> regular date time `lubridate::as_date_time()` --- vectors.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vectors.Rmd b/vectors.Rmd index f17332d..1975f2e 100644 --- a/vectors.Rmd +++ b/vectors.Rmd @@ -636,7 +636,7 @@ typeof(y) attributes(y) ``` -POSIXlts are rare inside the tidyverse. They do crop up in base R, because they are needed to extract specific components of a date, like the year or month. Since lubridate provides helpers for you to do this instead, you don't need them. POSIXct's are always easier to work with, so if you find you have a POSIXlt, you should always convert it to a regular data time `lubridate::as_date_time()`. +POSIXlts are rare inside the tidyverse. They do crop up in base R, because they are needed to extract specific components of a date, like the year or month. Since lubridate provides helpers for you to do this instead, you don't need them. POSIXct's are always easier to work with, so if you find you have a POSIXlt, you should always convert it to a regular date time `lubridate::as_date_time()`. ### Tibbles