Re: [R] Zoo object problem: Find the column name of a univariate zoo object

2012-08-10 Thread arun
11200 4 -0.7568025 x3<-zoo(x)  names(x3)<-"test"  names(x3) #NULL A.K. - Original Message - From: David Winsemius To: jpm miao Cc: R-help@r-project.org; Achim Zeileis Sent: Friday, August 10, 2012 1:18 AM Subject: Re: [R] Zoo object problem: Find the column name of a uni

Re: [R] Zoo object problem: Find the column name of a univariate zoo object

2012-08-09 Thread R. Michael Weylandt
On Thu, Aug 9, 2012 at 9:54 PM, jpm miao wrote: > Hi Michael, >This is my problem. Could you find out how I can find the column name of > the zoo object "xzoo"? I am expecting "EUR". > >Thanks, > > Miao > > > >> x<-read.csv("A_FX_EUR_Q.csv", header=TRUE) >> x[1:4,] > TIME EUR > 1 1

Re: [R] Zoo object problem: Find the column name of a univariate zoo object

2012-08-09 Thread David Winsemius
On Aug 9, 2012, at 7:54 PM, jpm miao wrote: Hi Michael, This is my problem. Could you find out how I can find the column name of the zoo object "xzoo"? I am expecting "EUR". To repeat what Michael wrote: zoo allows (but does not require) the data to have a dim attribute, as with any o

Re: [R] Zoo object problem: Find the column name of a univariate zoo object

2012-08-09 Thread jpm miao
Hi Michael, This is my problem. Could you find out how I can find the column name of the zoo object "xzoo"? I am expecting "EUR". Thanks, Miao > x<-read.csv("A_FX_EUR_Q.csv", header=TRUE)> x[1:4,]TIME EUR 1 198001 1.41112 2 198002 1.39108 3 198003 1.42323 4 198004 1.34205> xzoo<-

Re: [R] Zoo object problem: Find the column name of a univariate zoo object

2012-08-09 Thread R. Michael Weylandt
On Aug 9, 2012, at 8:32 PM, jpm miao wrote: > Hi everyone and Achim, > > Achim, I appreciate your help about the function "NCOL". When I use > "NCOL" instead of "ncol", I can find out the number of columns (number of > time series) in the presence of only one time series (one variable, one >

Re: [R] Zoo object problem: Find the column name of a univariate zoo object

2012-08-09 Thread David Winsemius
On Aug 9, 2012, at 6:32 PM, jpm miao wrote: Hi everyone and Achim, Achim, I appreciate your help about the function "NCOL". When I use "NCOL" instead of "ncol", I can find out the number of columns (number of time series) in the presence of only one time series (one variable, one column

[R] Zoo object problem: Find the column name of a univariate zoo object

2012-08-09 Thread jpm miao
Hi everyone and Achim, Achim, I appreciate your help about the function "NCOL". When I use "NCOL" instead of "ncol", I can find out the number of columns (number of time series) in the presence of only one time series (one variable, one column). Now I want to know how I can find out the col