Re: [R] Building a vector of dates between extreme dates

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu 23 Jun 2005 - 21:03:01 EST


Use seq.POSIXct (or seq.Date since you seem to have dates and not date-times), in just the same way you would use seq() for numbers.

On Thu, 23 Jun 2005 v.demartino2@virgilio.it wrote:

> I would like to build a data.frame with a column of POSIXct dates orderly
> differing one day per row exactly, that is:
>
> Data dato1
> 01/06/2005 .......
> 02/06/2005 .......
> ..............
> 29/06/2005 ........
> 30/06/2005 etc
>
>
> giving the extreme dates 01/06/2005 & 30/06/2005.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Jun 23 21:05:30 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:58 EST