[R] Odp: How transform log(x+1) all data matrix?
petr.pikal at precheza.cz
Mon Oct 8 14:46:34 CEST 2007
r-help-bounces at r-project.org napsal dne 08.10.2007 13:20:56:
> I just have started using R. I am working with abundance data (57
> species found in cod) and I would like to know if there is possible to
> transform all the data matrix. I read that in LDA it is possible to do
By data matrix you mean data frame? However both matrix or numeric data
frame can be transformed by
if x is your data.
> with log transformation but I need log (x+1) transformation because I
> many "0". It is important for me because I am testing random Forest and
> and I did 160 random files (training and testing files).
> Thank you very much
> All the best
> View this message in context:
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help