Re: [R] nesting same set of values with each level of another set of values

2011-03-11 Thread Dimitri Liakhovitski
Thanks a lot, David! Exactly what I was looking for! Dimitri On Fri, Mar 11, 2011 at 1:46 PM, David Winsemius wrote: > > On Mar 11, 2011, at 1:26 PM, Dimitri Liakhovitski wrote: > >> Hello! >> >> The code below works and does what I need it to do. >> However, I think the way I create myframe (las

Re: [R] nesting same set of values with each level of another set of values

2011-03-11 Thread David Winsemius
On Mar 11, 2011, at 1:26 PM, Dimitri Liakhovitski wrote: Hello! The code below works and does what I need it to do. However, I think the way I create myframe (last step) is very un-R-like and probably not very efficient. I am sure there are better, more R-appropriate methods. Any pointers? Tha

[R] nesting same set of values with each level of another set of values

2011-03-11 Thread Dimitri Liakhovitski
Hello! The code below works and does what I need it to do. However, I think the way I create myframe (last step) is very un-R-like and probably not very efficient. I am sure there are better, more R-appropriate methods. Any pointers? Thanks a lot! Dimitri # Step 1: Creating a vector of dates: myd