Re: [R] add trailing dates with rbind

2020-08-13 Thread PIKAL Petr
Hi I am not sure if I understand correctly. You want to change starting days to some common value? It seems to me that you actually want start at zero date and continue in each dataset regardless of actual starting date. If it is the case, I would use day numbers like in these examples > x <-

Re: [R] add trailing dates with rbind

2020-08-12 Thread Joshua Ulrich
Eric, Thanks for the recommendation for xts! Frederik, Please direct future questions about xts to R-SIG-Finance, or Stackoverflow. I (and other users) are more likely to see your questions there than here on R-help. Best, Josh On Wed, Aug 12, 2020 at 8:08 AM Frederik Feys wrote: > > Thank y

Re: [R] add trailing dates with rbind

2020-08-12 Thread Frederik Feys
Thank you so much Eric! Wonderful to have an R community helping out so quickly! > Op 12 aug. 2020, om 14:10 heeft Eric Berger het > volgende geschreven: > > Hi Frederik, > (short answer) modify the assignment statement to > agg_d_h <- rbind( agg_d_h, data.frame(Group.date=next_date,x=0)

Re: [R] add trailing dates with rbind

2020-08-12 Thread Eric Berger
Hi Frederik, (short answer) modify the assignment statement to agg_d_h <- rbind( agg_d_h, data.frame(Group.date=next_date,x=0) ) Note: replace x=0 by your-variable-name=0 Note: left-hand-side of the assignment statement should be agg_d_h (longer answer) Your approach is far from the b