[R] Zoo object problem: problem when I attempt to create a zoo object of only one column

2012-08-09 Thread jpm miao
Hi, Part of my program is to calculate the number of time series in a zoo object. It works well if it has more than one time series, but it fails if it has only one. How can I access the number of column (i.e. the number of time series) when I have only one column? Why is the number of an

Re: [R] Zoo object problem: problem when I attempt to create a zoo object of only one column

2012-08-09 Thread Achim Zeileis
On Thu, 9 Aug 2012, jpm miao wrote: Hi, Part of my program is to calculate the number of time series in a zoo object. It works well if it has more than one time series, but it fails if it has only one. How can I access the number of column (i.e. the number of time series) when I have only