[R] matching more than two vectors (?)

Juliane Struve juliane_struve at yahoo.co.uk
Fri Jan 16 21:57:23 CET 2009


Dear listmembers,
 
I am trying to obtain values for pointdistance from another dataframe by matching UTMX and UTMY coordinates, but I am not sure how to introduce the second coordinate. 
 
PointDF$pointdistance=DistanceDF$distance[match(PointDF$UTMX,DistanceDF$UTMX & PointDF$UTMY,DistanceDF$UTMY )]
 
is wrong but (hopefully) illustrates what I am trying to do. 
 
Could somebody help ?
 
Thank you very much.
 
 
Juliane 







More information about the R-help mailing list