Dear Bugs users,
the following question seems quite simple, but I can't find
a solution... :(
I would like to define a vector k, say, of length 3 {k=c(2,5,3)}.
Can I define it in the 'const' instruction block?
I tried
const k[1]=2, k[2]=5, k[3]=3; { for which I get the error message
"Expected equals sign."
under the first square bracket
}
and
const k=c(2,5,3); { for which I get the error message:
"Expected a parameter."
under the "(".
but none of them works.
Is there a way to do that in the 'const' block?
Or should I just define it in the body of the program?
Thanks in advance for your suggestions,
Patrick Belisle
Montreal General Hospital
Montreal, Quebec (Can)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|