direct(coord, listout=FALSE)direct2(coord, listout=FALSE)
data.frame
containing coordinates. Should have the same number of points as the data for which the direction-classes are calculated.data.frame
)-format instead of returning a dist
-object.dist
-object. If listout
= TRUE, the result is given as a list (data.frame
).
direct
returns 4 directions (North-South, Northwest-Southeast, West-East, Northeast-Southwest).
direct2
returns 6 directions.mantel
, cor.test
data(abis)
dirclass <- direct(abis.env[,1:2])
dirclass
dirclass.ls <- direct(abis.env[,1:2], listout=TRUE)
dirclass.ls
Run the code above in your browser using DataLab