[R] library(datasets)
lgpeco
badblueboy4 at gmail.com
Fri Nov 19 16:23:18 CET 2010
## i have one question anouth this package..
library(datasets)
eurodist
## if i type this i get max distance between european cities
> max(eurodist)
[1] 4532
## but i would like get something like this: 4532 Gilbratar - Anthens
## and another one..
## if a live in barcelona and i would like travel in all cities
## how can i get sum of all distance to other cities... i try
sapply(eurodist["Barcelona"], sum)
## and rowSums(eurodist["Barcelona",]) and it doesn't working.. tnx for
helping ;)
--
View this message in context: http://r.789695.n4.nabble.com/library-datasets-tp3050497p3050497.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list