[R] < 0 x 0 matrix >
Romain Francois
romain.francois at dbmail.com
Fri Sep 4 12:31:11 CEST 2009
On 09/04/2009 12:25 PM, Markku Karhunen wrote:
>
> Hi,
>
> Does anybody know, what is going on here?
>
>> diag(sqrt(1))
> [,1]
> [1,] 1
>> diag(sqrt(0.3333))
> <0 x 0 matrix>
>> sqrt(1)
> [1] 1
>> sqrt(0.3333)
> [1] 0.5773214
>
> BR, Markku Karhunen
> researcher
> University of Helsinki
Try this instead;
> diag( sqrt(.3333), 1, 1 )
[,1]
[1,] 0.5773214
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/xMdt : update on the ant package
|- http://tr.im/xHLs : R capable version of ant
`- http://tr.im/xHiZ : Tip: get java home from R with rJava
More information about the R-help
mailing list