Hello,

Just use what you've written:

m <- matrix(1:12, ncol = 3)
2^m  # it's a matrix

Hope this helps,

Rui Barradas

Em 13-05-2013 19:41, JiangZhengyu escreveu:
Dear all, I have a matrix with all values being log transformed.  I want them 
back to the values before the transformation.  i.e. 2^matrix M. Is there any 
easy code to do this? Thanks,Zhengyu                                         
        [[alternative HTML version deleted]]

______________________________________________
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.


______________________________________________
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