Re: [R] R:Exponent

2015-12-31 Thread David Winsemius
> On Dec 31, 2015, at 11:16 AM, Abram Wooten via R-help > wrote: > > Hello, > > I am new to R and I am having trouble adding an exponent to my problem. For > instance, >> mat5 <-matrix(c(0.5,0.5,0.25,0.75),2,byrow=T) >> mat6 <-matrix(c(0.5,0.5,0.25,0.75),2,byrow=T) >> mat5%^%2 > Error: could

Re: [R] R:Exponent

2015-12-31 Thread David Winsemius
> On Dec 31, 2015, at 1:12 PM, David Winsemius wrote: > >> >> On Dec 31, 2015, at 11:16 AM, Abram Wooten via R-help >> wrote: >> >> Hello, >> >> I am new to R and I am having trouble adding an exponent to my problem. For >> instance, >>> mat5 <-matrix(c(0.5,0.5,0.25,0.75),2,byrow=T) >>> m

[R] R:Exponent

2015-12-31 Thread Abram Wooten via R-help
Hello, I am new to R and I am having trouble adding an exponent to my problem. For instance, > mat5 <-matrix(c(0.5,0.5,0.25,0.75),2,byrow=T) > mat6 <-matrix(c(0.5,0.5,0.25,0.75),2,byrow=T) > mat5%^%2 Error: could not find function "%^%" I unsure on weather I should square mat5 or use the two m