[R-SIG-Finance] [R-sig-finance] How to create seasonal variable for zoo object.
Bogaso
bogaso.christofer at gmail.com
Sun Jun 21 17:42:22 CEST 2009
Hi all, how to create a seasonal variable for a zoo object? For example I
have following dataset :
rm(list = ls())
URL <- "http://www.jmulti.de//download/datasets/e6.dat"
dat1 <- readLines(URL)
dat11 <- dat1[-c(1:11)]
dat12 <- read.table(textConnection(dat11))
library(zoo)
TS.dat <- zooreg(dat12[,c(2,1)], start = 1972.2, frequency = 4)
I want to create seasonal variable for each quarter for "TS.dat"
--
View this message in context: http://www.nabble.com/How-to-create-seasonal-variable-for-zoo-object.-tp24135743p24135743.html
Sent from the Rmetrics mailing list archive at Nabble.com.
More information about the R-SIG-Finance
mailing list