is there a way to write a command in R that automatically returns today's date exactly one year ago in R? I know that to return today's date I can use Sys.Date(), just trying to do the same to return the same day one year ago
            Asked
            
        
        
            Active
            
        
            Viewed 21 times
        
    0
            
            
        
        sa90210
        
- 525
 - 2
 - 12
 
- 
                    `Sys.Date() - 365` – Mikko Aug 13 '20 at 20:53
 - 
                    1If necessary, install and load the ```lubridate``` package and try this ```ymd(Sys.Date()) - years(1)``` – writer_typer Aug 13 '20 at 20:57