[R-sig-Geo] question about unique in lon/lat

Hodgess, Erin HodgessE at uhd.edu
Sun Feb 16 03:34:03 CET 2014


Just figured it out:

 unique(cbind(bigz$lon,bigz$lat))

Nothing like posting to the list to help you solve a problem.

thanks,
Erin

________________________________________
From: r-sig-geo-bounces at r-project.org [r-sig-geo-bounces at r-project.org] on behalf of Hodgess, Erin [HodgessE at uhd.edu]
Sent: Saturday, February 15, 2014 8:30 PM
To: r-sig-geo at r-project.org
Subject: [R-sig-Geo] question about unique in lon/lat

Hello!

I have space-time data frame.  Here are the first few rows:

              name   index        lon      lat
1   Abilene    ,TX  95.285  -99.73314 32.44874
2   Abilene    ,TX  98.603  -99.73314 32.44874
3   Abilene    ,TX 100.197  -99.73314 32.44874
4   Abilene    ,TX 102.016  -99.73314 32.44874
5   Abilene    ,TX 100.000  -99.73314 32.44874
6   Abilene    ,TX 102.822  -99.73314 32.44874
7   Abilene    ,TX 107.988  -99.73314 32.44874
8   Abilene    ,TX 110.546  -99.73314 32.44874
9   Abilene    ,TX 105.897  -99.73314 32.44874
10  Abilene    ,TX 107.642  -99.73314 32.44874
11  Abilene    ,TX 108.523  -99.73314 32.44874
12 Amarillo    ,TX  92.486 -101.83130 35.22200
13 Amarillo    ,TX  95.431 -101.83130 35.22200
14 Amarillo    ,TX  97.485 -101.83130 35.22200
15 Amarillo    ,TX  99.714 -101.83130 35.22200
16 Amarillo    ,TX 100.000 -101.83130 35.22200
17 Amarillo    ,TX 103.649 -101.83130 35.22200
18 Amarillo    ,TX 105.998 -101.83130 35.22200
19 Amarillo    ,TX 109.965 -101.83130 35.22200
20 Amarillo    ,TX 109.325 -101.83130 35.22200
21 Amarillo    ,TX 112.550 -101.83130 35.22200
22 Amarillo    ,TX 112.541 -101.83130 35.22200
23     Austin  ,TX  83.228  -97.74306 30.26715
24     Austin  ,TX  83.232  -97.74306 30.26715
25     Austin  ,TX  86.072  -97.74306 30.26715
26     Austin  ,TX  93.592  -97.74306 30.26715
>

My question is:  is there a way to get the "unique" values from lon/lat for each city, please?

Thanks,
Erin


        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list