details for more...aslopect(asp, slo, names=rownames(asp), fc=FALSE, listout = FALSE)asp, but a separate vector can be specified. Its length has to match the length of asp and slo.TRUE if full circle degrees (from 0$^\circ$ to 360$^\circ$) are given in asp.data.frame). Defaults to FALSE which means that a matrix of class dist is returned.dist object or a data.frame (depending if listout = FALSE or TRUE). As a unit sphere is used, the maximum distance between two inclination/aspect pairs is perimeter/2 of the sphere which is by definition $\pi$. To scale the possible distances between 0 and 1 the results are divided by $\pi$. Thus, a great-circle distance of 1 is rather scarce in the real world, however, two vertical rock walls with opposite aspect would share it. If listout = TRUE a data.frame with the following variables returns.$sim = \zeta =\arccos\Big(\sin(\phi_A) \cdot \sin(\phi_B) + \cos(\phi_A) \cdot \cos(\phi_B) \cdot \cos(\lambda_B - \lambda_A) \Big)$
data(abis)
## identify columns with slope and aspect data
names(abis.env)
## calculate aslopect
abis.aslop <- aslopect(abis.env[,4], abis.env[,5])Run the code above in your browser using DataLab