20 Aug 08:04
Random sequence of days?
From: Lauri Nikkinen <lauri.nikkinen <at> iki.fi>
Subject: Random sequence of days?
Newsgroups: gmane.comp.lang.r.general
Date: 2008-08-20 06:04:50 GMT
Subject: Random sequence of days?
Newsgroups: gmane.comp.lang.r.general
Date: 2008-08-20 06:04:50 GMT
Dear list,
I tried to find a solution for this problem from the archives but
couldn't find any. I would like sample sequence of ten days from
vector d
d <- seq(as.Date("2007-02-12"), as.Date("2008-08-18"), by="days")
so that the days follow each other (sample(d, 10) is not the
appropriate solution). Any ideas?
Best regards,
Lauri
______________________________________________
R-help <at> 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.
RSS Feed