[R] Odp: How transform log(x+1) all data matrix?
Petr PIKAL
petr.pikal at precheza.cz
Mon Oct 8 14:46:34 CEST 2007
Hi
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
parasite
> 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
it
By data matrix you mean data frame? However both matrix or numeric data
frame can be transformed by
log(x+1)
if x is your data.
Regards
Petr
> with log transformation but I need log (x+1) transformation because I
have
> many "0". It is important for me because I am testing random Forest and
LDA
> and I did 160 random files (training and testing files).
>
> Thank you very much
>
> All the best
> --
> View this message in context:
http://www.nabble.com/How-transform-log%28x%2B1%
> 29-all-data-matrix--tf4587543.html#a13094677
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list