Skip to content
Prev 371371 / 398506 Next

require help

You did not provide the data frame so I will first create one and then use
it to create an xts

library(xts)
df <- data.frame( year=1980:2009, cnsm=sample(170:180,30,replace=TRUE),
                  incm=rnorm(30,53,1), wlth=rnorm(30,60,1))
dates <- as.Date(paste(df$year,"-01-01",sep=""))
myXts <- xts(df,order.by=dates)
On Fri, Sep 15, 2017 at 12:38 PM, yadav neog <yadavneog at gmail.com> wrote: