Try this: as.Date("18/08/2008", "%d/%m/%Y") - as.Date("18/09/2010", "%d/%m/%Y")
On Thu, Aug 6, 2009 at 6:27 AM, Inchallah Yarab <inchallahya...@yahoo.fr>wrote: > Hi, > > how can i use operation + , - , / with veriable format DATES? > > for example i have two variable a <- 18/08/2008 and b <- 18/09/2010 and i > want to calculate a-b ?? > > thank you? > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.