[R] problems with for: warnings and segfault
Ronaldo Reis-Jr.
chrysopa at gmail.com
Fri Nov 11 16:54:55 CET 2005
Em Sex 11 Nov 2005 13:34, Peter Dalgaard escreveu:
>
> Look at
>
> xcoord[indice] <- xcoord+i
>
> The left hand side is a single element, the right hand side is a
> vector so I don't think it means what I think you think it means.
I'm stupid, of course. The correct is:
> xcoord[indice] <- xcoord[indice-1]+i
> ycoord[indice] <- ycoord[indice-1]
This error is the segfault.
Thanks
Ronaldo
--
So so is good, very good, very excellent good:
and yet it is not; it is but so so.
-- William Shakespeare, "As You Like It"
--
|> // | \\ [***********************************]
| ( õ õ ) [Ronaldo Reis Júnior ]
|> V [UFV/DBA-Entomologia ]
| / \ [36570-000 Viçosa - MG ]
|> /(.''`.)\ [Fone: 31-3899-4007 ]
| /(: :' :)\ [chrysopa at insecta.ufv.br ]
|>/ (`. `'` ) \[ICQ#: 5692561 | LinuxUser#: 205366 ]
| ( `- ) [***********************************]
|>> _/ \_Powered by GNU/Debian Woody/Sarge
More information about the R-help
mailing list