Re: [R] how to change format of dates in a tibble

2019-12-18 Thread Duncan Murdoch
On 18/12/2019 11:45 a.m., Christopher W Ryan wrote: I'm not understanding how the tidyverse handles date formats. output of sessionInfo() at the end of my message. dateRanges <- structure(list(apptType = structure(1:2, .Label = c("initial visit", "start of treatment visit"), class = "factor"),

Re: [R] how to change format of dates in a tibble

2019-12-18 Thread Rui Barradas
Hello, You are passing a tbl_df to functions that expect a vector. Here is a first, simpler example. library(tidyverse) df1 <- tibble(Date = Sys.Date() + 0:9) ## both produce expected result format(df1$Date, format = "%d %b %Y") df1 %>% mutate(d = format(Date, format = "%d %b %Y")) Now y

[R] how to change format of dates in a tibble

2019-12-18 Thread Christopher W Ryan
I'm not understanding how the tidyverse handles date formats. output of sessionInfo() at the end of my message. dateRanges <- structure(list(apptType = structure(1:2, .Label = c("initial visit", "start of treatment visit"), class = "factor"), minMadeRequestDates = structure(c(18124, 18115), class