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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to