R-alpha: 1x1 matrix as scalar

Paul Gilbert (pgilbert@bank-banque-canada.ca)
Tue, 18 Jun 1996 10:43:58 -0400


Date: Tue, 18 Jun 1996 10:43:58 -0400
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
To: R-testers@stat.math.ethz.ch
Subject: R-alpha: 1x1 matrix as scalar
Message-Id: <96Jun18.104402edt.29449@mailgate.bank-banque-canada.ca>



R 0.9 gives
 
>  1:2 %*% 1:2  + 1:5
Error: dim<- length of dims do not match the length of object

For the the above S returns the result given in R by
> c(1:2 %*% 1:2)  + 1:5
[1]  6  7  8  9 10
> 

Paul Gilbert
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-