,
Eduard
-Original Message-
From: Duncan Murdoch [mailto:murd...@stats.uwo.ca]
Sent: 04 February 2009 14:04
To: Eduard Pieterse (Macquarie Securities)
Cc: r-help@r-project.org
Subject: Re: [R] Debug help
On 2/4/2009 6:28 AM, ehxpieterse wrote:
> Hi,
>
> I am getting the follow
On 2/4/2009 6:28 AM, ehxpieterse wrote:
Hi,
I am getting the following error: argument is of length zero
My code:
temp <- 0
for (j in 1 : 3) {
for (k in 1 : 12) {
temp <- temp + as.double(C[k, (q - 1) * 3 + j]) * as.double(m_ret_reb[i + k
- 1, j+1])
}
}
Why would R handle my temp variable as
Hi,
I am getting the following error: argument is of length zero
My code:
temp <- 0
for (j in 1 : 3) {
for (k in 1 : 12) {
temp <- temp + as.double(C[k, (q - 1) * 3 + j]) * as.double(m_ret_reb[i + k
- 1, j+1])
}
}
Why would R handle my temp variable as numeric(0)?
Thanks
--
View this messag
3 matches
Mail list logo