Skip to content
Prev 19372 / 29559 Next

nndist {spatstat} distance unit output

On 09/24/13 08:31, Paolo Ramoni Perazzi wrote:
The distance units are determined by the pattern "X" to which you are 
applying
nndist.  You can change those units by applying the rescale() function to X.

E.g.

     X <- rescale(bei,1000)
     unitname(X) <- "kilometre"

     cheers,

     Rolf Turner

P. S.  It is the spatstat ***package*** not "library"!!!  (A library is 
a *collection*
of packages.)  Repeat after me, 50 times: "spatstat ***package***, spatstat
***package***, ...."!!! :-)

     R. T.