Skip to content
Prev 4634 / 15274 Next

Read timeseries from csv file with xts or quantmod

On Fri, 24 Jul 2009, Mark Breman wrote:

            
You can use read.zoo() from the "zoo" package and the as.xts() to coerce 
to an "xts" series.

   library("xts")
   x <- as.xts(read.zoo("US_PMI_Monthly.csv", dec = ","))

Note that you have to set the decimal separator appropriately.

hth,
Z