My data is structured as follows:
curr time
<chr> <date>
1 USD 2015-07-18
2 USD 2014-10-16
3 USD 2016-03-26
Question:
I like to select the full month
subset(ks, deadline >= '2010-01' & deadline <= '2016-03')
This returns
Error in charToDate(x) :
character string is not in a standard unambiguous format.
This works, but would always need a manual check of the days of a months.
subset(ks, deadline >= '2010-01-01' & deadline <= '2016-03-31')
Is there a way to get the first "error" version working?
I only have a long approach here ! The check condition shall have 3 parts :
All years with all months within the interval : eg. in our case years 2010 to 2015 all months are considered.
The last year : May be only few months are involved here .eg From 2016 , only first 3 months are considered. Same for the starting year