Quantcast
Channel: Active questions tagged xts - Stack Overflow
Viewing all articles
Browse latest Browse all 57

Obtaining last Friday's date

$
0
0

I can get today's date:

Sys.Date( )

But how do I get last Friday's date?

I tried:

library(xts)date1 <- Sys.Date( ) to.weekly(date1 )

But this gives an error.


Viewing all articles
Browse latest Browse all 57

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>