Skip to content
Prev 242223 / 398500 Next

library(datasets)

## i have one question anouth this package..
library(datasets)
eurodist
## if i type this i get max distance between european cities
[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 ;)