Re: [R] remove rows with infinite/nan values from a zoo dataset

2013-09-04 Thread arun
Hi, This is confusing because the error message suggests that you were not able to read the csv file.  Then how did you removed the Inf values?.  I guess this should be a different dataset. >From your previous email: " prices=read.zoo("C:\\Users\\Desktopawc_au.csv",header=TRUE,sep=",",f

Re: [R] remove rows with infinite/nan values from a zoo dataset

2013-09-03 Thread arun
Hi, No problem. In my previous post, I showed how to dput() your example dataset.  Please use dput() in the future. vec1<- c(3.369247e-04,0.00e+00,9.022183e-04,0.00e+00,-1.105819e-04,-Inf,1.191271e-04,1.681718e-04,NaN,1.150126e-04,1.031037e-03,2.710993e-04) indx<-seq(as.Date("2009-09-0

Re: [R] remove rows with infinite/nan values from a zoo dataset

2013-09-02 Thread arun
Hi, Please dput() the example dataset.  When I read from the one shown below, it looks a bit altered. library(zoo) dat1<- read.zoo(text="2009-07-15,#N/A N/A,#N/A N/A,18.96858 2009-07-16,20.30685,20.40664,#N/A N/A 2009-07-17,20.78813,20.03991,20.40664 2009-07-20,21.41278,21.41278,20.03991 2009-07-