Re: [R] Error in dis[sppInSample, sppInSample]:subscript out of bounds

2015-08-21 Thread Andrew Park
I'm pretty sure you are using the package Picante. When I received the error you described in my own project, it was due to the naming of species in the community matrix and the phylogenetic tree being slightly different (one separated latin binomials with a space, the other with an underscore). Wh

[R] Calculating Rsquared values in rpart

2007-12-13 Thread Andrew Park
Hi there In rpart, one can get a graph of R-squared (using rsq.rpart (fit)), in which the x axis is the number of splits, and which contains two lines - an "apparent" R squared and an Rsquared based on the x error. I would like to caclulate these R-squared values, but cannot work out from the

[R] Permutation of a distance matrix

2007-11-16 Thread Andrew Park
Hi there, I would like to find a more efficient way of permuting the rows and columns of a symmetrical matrix that represents ecological or actual distances between objects in space. The permutation is of the type used in a Mantel test. Specifically, the permutation has to accomplish somethi