I'm trying to apply the anytime() function from the anytime package in a dplyr chain to all columns ending with Date
I'm however getting this error.
Error: Unsupported Type
when I use
invoicePayment <- head(raw.InvoicePayment) %>%
mutate_at(ends_with("Date"), funs(anytime))
but it's fine when I use
invoicePayment <- head(raw.InvoicePayment) %>%
select(ends_with("Date")) %>%
mutate_at(ends_with("Date"), funs(anytime))
Any help is appreciated, Thanks,