Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to identify and convert with poorly formatted dates #11

Open
craig-shenton opened this issue Sep 13, 2022 · 0 comments
Open

Function to identify and convert with poorly formatted dates #11

craig-shenton opened this issue Sep 13, 2022 · 0 comments
Labels
docs Improvements or additions to documentation function

Comments

@craig-shenton
Copy link
Contributor

Example from Simon Wellesley-Miller:

Date stored as JUN2022. Convert this to a useable date format:

data$date <- as.POSIXct(paste0("01-",
+ substr(data$appt_month,1,3),
+ "-" ,
+ substr(data$appt_month,6,7)),
+ format = "%d-%b-%y")
@craig-shenton craig-shenton added docs Improvements or additions to documentation function labels Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation function
Projects
Development

No branches or pull requests

1 participant