Manage New Post Logout Login

Technical Notes

Documentation of fixes for programming/computing annoyances.

Tag r

« Back to blog

Clean up columns with dates in multiple formats in R

I have a data frame in R where dates are in two different formats: 2019-01-01 and 01/01/2019. These are stored as characters by default because R can't convert them to dates.

There's a pretty easy way to clean this up, however:

Tags
  • r
Upvote Upvoted 0
Tweet
1 response   //   Posted

by Max Masnick

www.maxmasnick.com

Follow @_technotes on Twitter

Terms of use.
Browse the Archive »
Subscribe by email
You're following this blog. Unfollow
Follow this Posthaven
Enter your email address to get email alerts about new posts on this site. Unsubscribe anytime.
Email address is invalid.

Tags

  • ipython 7
  • mailmate 7
  • applescript 7
  • python 5
  • textexpander 4
  • OS X 4
  • Finder 3
  • stata 3
  • sas 2
  • JXA 2
  • See all 30 tags »