Displaying 1 result from an estimated 1 matches for "bigm1".
Did you mean:
big1
2011 Oct 19
1
list of operations that preserve attributes
...e attributes, particularly those that
are binary like multiplication, but it might be nice to know which operations and special
functions do so.
rm(list=ls())
m<-matrix(1:4,nrow=2, ncol=2)
print(m)
attributes(m)
attr(m,"check")<-"***"
attributes(m)
bigm<-10*m
str(bigm)
bigm1<-diag(c(1,1))%*%m
str(bigm1)
bigm1<-c(1,2)*m
str(bigm1)
print(bigm1)
arraym<-as.array(m)
str(arraym)
tanm<-tan(m)
str(tanm)
Best,
John Nash