i suggest you'd better translate the.data format to another form like in
SAS, the data can be a number count from a fixed time like 2005-01-01, then
you can translate the datas to a sequence.
On 03-Apr-2011 5:40 PM, "Gabor Grothendieck"
wrote:
On Sat, Apr 2, 2011 at 9:31 PM, Linh Tran wrote:
>
On Sat, Apr 2, 2011 at 9:31 PM, Linh Tran wrote:
> Hi guys,
>
> I'd like to thank you ahead of time for any help that you can offer me.
> I'm kind of stuck trying to do this.
>
> I have a data frame with dates and values (note: only two columns shown):
>
> head(test)
> date value
Sorry, I did not get the question because I read it too sloppily. I hope this
is not homework. You can proceed along this example:
set.seed(32345)
#Value of observation
value=rpois(60,100)
#Day of observation
day=sample(1:1080,50,replace=F)
day=sort(day)
#Assume 3 years
#Assume months have all
The ?cut function should work for that. Have you tried?
D.
--
View this message in context:
http://r.789695.n4.nabble.com/Discretizing-data-rows-into-regular-intervals-tp3422921p3422933.html
Sent from the R help mailing list archive at Nabble.com.
__
Hi guys,
I'd like to thank you ahead of time for any help that you can offer me.
I'm kind of stuck trying to do this.
I have a data frame with dates and values (note: only two columns shown):
head(test)
date value stop
1 01/02/05 100 12/01/07
2 07/16/05 20
5 matches
Mail list logo