SyntaxFix
Write A Post
Hire A Developer
Questions
The answer probably depends on what format your date is in, but here is an example using the Date class:
Date
dt <- as.Date("2010/02/10") new.dt <- dt - as.difftime(2, unit="days")
You can even play with different units like weeks.