Skip to content
Prev 132188 / 398506 Next

Working with ranges of a list

Thank you for the attempt.
On your advice I am working with lists to avoid the numbers (which are
geographical coordinates) becoming strings. The call you suggest does
not take care of that. Now I am trying to extract the coordinates from
the list efficiently. Of course I could make a loop, e.g.

punkte[,1]<-orte[[1]][[2[1]]]

being replaced by

for(n in 1:lang){
punkte[n,1]<-orte[[n]][[2[1]]]
punkte[n,2]<-orte[[n]][[3[1]]]
}

but I wonder if there was no more efficient way.
Faithfully,
Mag. Ferri Leberl

Am Sonntag, den 16.12.2007, 10:32 -0500 schrieb jim holtman: