Displaying 11 results from an estimated 11 matches for "knearneigh".
Did you mean:
dnearneigh
2012 Jul 24
3
Nearest Neighbors
I was wondering if there is a way in R to find k nearest neighbors of various
orders, say order 2, 3, or 4. In otherwords neighbors of neighbors of
neighbors. You get the idea. I know that I can use knearneigh(matrix.data,
k) but this only gives me the k nearest neighbors and not of a particular
order.
Thanks in advance.
--
View this message in context: http://r.789695.n4.nabble.com/Nearest-Neighbors-tp4637618.html
Sent from the R help mailing list archive at Nabble.com.
2004 Jun 22
1
k nearest neighbours
Hi there fellow R-users,
Does anyone know of a function which does exactly what knearneigh{spdep}
(finds the k nearest neighbours) does in the package spdep but for more than
2D data?
Regards
Wayne
KSS Ltd
Seventh Floor St James's Buildings 79 Oxford Street Manchester M1 6SS England
Company Registration Number 2800886
Tel: +44 (0) 161 228 0040 Fax: +44 (0) 161 236 6305
mail...
2013 Aug 20
1
obtener matriz de contactos
Hola Freddy.
Yo parto de un shape en que tengo los típicos archivos .shp, .sbx, .sbn,
.shx y .dbf.
En la tabla tengo el área de los poligonos en m2, el perímetro, el estado y
el código ISO del estado dispuesto por el SGM.
¿Me puedes orientar un poco más?
Gracias,
Sebastían.
El 14 de agosto de 2013 16:19, Freddy Omar López Quintero <
freddy.vate01@gmail.com> escribió:
> Hola
2004 Feb 02
2
Nearest Neighbor Algorithm in R -- again.
...ication from real life.
Are there better/faster ways to perform this task using R functions?
Even better, is there a free implementation of kd-trees that I could
utilize (the one I found did not conform to the ANSI C standard)?
Someome pointed to 'spdep' of the R-Sig-Geo project, but 'knearneigh'
only accepts 2D data points.
Hans Werner Borchers
ABB Corporate Research, Germany
________________________________________________________________________
require (class)
nearest <- function (X, n, k=3)
## Find k nearest neighbors of X[n, ] in the data frame
## or matrix X, utilizing fu...
2004 Feb 19
1
How to create a "nb" object?
Hi group,
I'd like to do spatial analysis of my data using the spdep package. It appears that a file of class nb is necessary, but I do not find what that should look like and if there is a function that creates such file for me.
How can I create a nb-object of my data points?
Thanks,
René Eschen.
[[alternative HTML version deleted]]
2004 Feb 25
0
k nearest neighbours between two matrix
...r each point in A I want to find the k-nearest neighbours in B.
Currently, I calculate the distance from each point in A to all the points
in B (using rdist.earth() in fields package), sort the points of B by
distance and select the k nearest ones.
Is there a more efficient way to do this?
Function knearneigh {spdep} (using knn() of VR) does something similar but
for a matrix with itself and not with another matrix.
Is there a function that already does what I want and I could not find?
Thanks
Angel
2006 Mar 14
1
help on moran's I index of point pattern, not areal pattern
hi,friends,
we all know that moran's I index and Geary'C index can be used to test
spatial autocorrelation in both the area data and point data, but i only can
find something on how to calculate on the data of area, and can't find the
methods to perform it on the point data, could anybody give me some
information, thanks in advance!
--
Kind Regards,
Zhi Jie,Zhang ,PHD
Department of
2010 Nov 29
1
Moran I for very large data set
Hi
Are there any more efficient ways of calculating the neighbourhood object for large datasets?
I am trying to compute Moran I statistics for a very large data set (over 14,000 points). I have been using moran.test from the spdep package and everything works fine for a small data set (200 points). However, applying the same script to the whole dataset is taking days to compute (it so far has
2003 Jun 30
2
spatial correlation test
hello,
I want to do a test for spatial correlation.
I tried it with geary.test() but I don't understand the required input.
x= a numeric vector the same length as the neighbours list in listw (my
sampled data, I assume)
listw= a listw object created for example by nb2listw (well when I check
nb2listw() I get to "neighbours - an object of class nb" - but I couldn't
figure
2004 Apr 26
2
Spatial Autocorrelation for point data
Hi R helpers,
Is there a function (package?) in R available which tests "spatial
autocorrelation" between points (e.g. vector layer of weather stations)?
(e.g. Moran's I...)
Via the archives we found out that there is a package 'spdep' which uses
grid data for testing spatial autocorrelation.
Thanks a lot,
Jan
2012 Jul 24
1
unable to run spatial lag and error models on large data
Hi:
First my apologies for cross-posting. A few days back I posted my queries ar R-sig-geo but did not get any response. Hence this post.
I am working on two parcel-level housing dataset to estimate the impact of various variables on home sale prices.
I created the spatial weight metrics in ArcGIS 10 using sale
year of four nearest houses to assign weights. Next, I ran LM tests and
then ran