Skip to content
Back to formatted view

Raw Message

Message-ID: <441641.64141.qm@web28107.mail.ukl.yahoo.com>
Date: 2008-07-24T09:52:14Z
From: pierre8r-list at yahoo.fr
Subject: Got a error message with a OpCl(x).

Hi,

I have this message error :

Error in attr(x, "tsp") <- c(1, NROW(x), 1) : 
  attempt to set an attribute on NULL


With this R code :


library(quantmod) # this also pulls in zoo
library(xts) # this also pulls in zoo

Lines <-
"2007-12-03  100.00  110.00  90.00  110.00  10.0
2007-12-04  110.00  120.00 100.00  120.00 10.0
2007-12-05  120.00  130.00 110.00  130.00 10.0
2007-12-06  130.00  140.00 120.00  140.00 10.0
2007-12-07  140.00  140.00 120.00  140.00 10.0
2007-12-08  130.00  130.00 110.00  120.00 10.0
2007-12-09  120.00  120.00 120.00  140.00 10.0
2007-12-10  110.00  130.00 120.00  140.00 10.0
2007-12-11  100.00  120.00 120.00  140.00 10.0"


x <- read.zoo(textConnection(Lines))
x <- as.xts(x)

OpCl(x)





      ____________________________________________________________
ente http://mail.yahoo.fr