search for: geodist

Displaying 6 results from an estimated 6 matches for "geodist".

2011 Nov 08
1
from points in Lon/Lat to physical distance in dist class
...units and export it in dist class. But, it could not be used to work on points in lon/lat. (3) some dummy codes # (3.1) generate dummy points in lon/lat (in degree) points <- data.frame(lon=seq(95, 105),lat=seq(35, 45)) # (3.2) calculate distance between points using distGPS() library(BoSSA) Geodist<-distGPS(points) str(Geodist) class(Geodist) [[alternative HTML version deleted]]
2002 Apr 12
2
Help
I have an adjacency matrix and I want to obtain a matrix of the minimum paths between the nodes. Thank you Alessandro Ambrosini -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !)
2005 Aug 12
6
evaluating string variables
...#define data frame L <- data.frame(frame=numeric(7), L=numeric(7)) f0<-1/(5*(5-1)) # first variable for computation #loop over matrices, Open it , calculate property and put into data frame for(i in 0:6){ m<-matrix(scan('C:/R/i.mat', n=5*5),5,5, byrow=TRUE) # load matrix f1<-geodist(m) f2<-sum(colSums(f1$gdist)) l <-f0*f2 # Calculate property L[i+1, ]<-c(i,l)...
2009 May 23
0
dimnames does not match array extent
Dear R help-list, I am trying to calculate Monmoniers algorithm. I have 3 data sets: coordinates (coord), distance matrix (comdist) and geographical distance matrix (geodist). I consistently get the error " dimnames does not match array extent". However, when I use the function "structure" I get the following results: > str(coord) 'data.frame': 114 obs. of 3 variables: $ sites : Factor w/ 114 levels "beni.bl","beni.pen...
2009 May 29
0
Help installing sna on Solaris 10/Intel
...guration file I can tweek?) Tia, -y * Installing *source* package 'sna' ... ** libs gcc -std=gnu99 -I/tmp/rtest/foo/lib/R/include -I/usr/local/include -fpic -g -O2 -c components.c -o components.o gcc -std=gnu99 -I/tmp/rtest/foo/lib/R/include -I/usr/local/include -fpic -g -O2 -c geodist.c -o geodist.o gcc -std=gnu99 -I/tmp/rtest/foo/lib/R/include -I/usr/local/include -fpic -g -O2 -c gli.c -o gli.o gcc -std=gnu99 -I/tmp/rtest/foo/lib/R/include -I/usr/local/include -fpic -g -O2 -c layout.c -o layout.o gcc -std=gnu99 -I/tmp/rtest/foo/lib/R/include -I/usr/local/include -...
2012 Feb 23
0
resistanceDistance representation
...rther genetic analyses are programmed), but i've also tried with only two points: > coords<-read.csv("coords_md.csv",header=F) > mycoords<-as.matrix(coords) > my_spatialpoints<-SpatialPoints(mycoords) Finally I calculated three geographical distance matrices: > geodist <- pointDistance(my_spatialpoints,longlat=FALSE) > summary(geodist) V1 V2 V3 V4 V5 Min. : 0 Min. : 0 Min. : 0 Min. : 0 Min. : 0 1st Qu.:133788 1st Qu.:133788 1st Qu.:133788 1st Qu.:133788...