[R] Cross-correlation function

2005-10-20 Thread Anne Hertel
') Error in colnames-(`*tmp*`, value = c(ts(mod[, 1]), ts(mod[, 2]) : attempt to set colnames on object with less than two dimensions Can anybody see what is wrong and what I need to do different? Thanks, Anne Hertel Anne M. K

Re: [R] spliting an integer

2005-10-20 Thread Anne Hertel
Hi Dimitri, You could write z - trunc(x/1) z [1] 1 12 8 y - x-trunc(x/1)*1 y [1] 1999 2000 1997 And there you have it. Cheers, Anne Hertel On Thu, 20 Oct 2005 17:40:10 -0200 Dimitri Szerman [EMAIL PROTECTED] wrote: Hi there, From the vector X of integers, X = c(11999