Hello,
i am trying to calculate the number of days since the complaint was registered. I wanted to calculate the number of days between "Date Notified" and today's date. i used the below command to get the result but it is showing me an error. Can anyone please help me !
Mergingopen%>%
mutate(30 days since file opened = `Date Notified`,Sys.Date())
Try
Mergingopen %>%
mutate('30 days since file opened' = as.numeric(difftime(Sys.Date(),
`Date Notified`,
units = c("days"))))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.