I'm moving from SAS to R, and heavily use both INTCK and INTNX.
Are there any functions or packages that have similar functionality as these SAS functions?
Edit: Specifically I want to be able to compare two dates and return the amount of weeks in between them.
Thanks
There is function difftime. Which is used as, considering dt1 and dt2 two values representing time :
difftime(dt1, dt2, units = "weeks")
and gives you the difference of dt1 to dt2 in weeks.
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