I need an advice as to how import data using readr
by inputing my own date format
The way i am trying is:
read_csv("test", col_types = cols( column-name = col_date("02/03/2015", "%d/%m/%Y))
But its giving me error
" Error in col_date("02/03/2015", "%d/%m/%Y"): unused argument("%d/%m/%Y")
When i test a single input using parse_date("02/03/2015", "%d/%m/%Y")
it gives me the desired results
I would really appreciate if someone will help me, got stuck on this for last couple of days.
Building on comments, it should be something like:
read_csv(filename, col_types=cols(column-name = col_date("%d/%m/%Y"))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With