[R] GPS data!

Spencer Graves spencer.graves at structuremonitoring.com
Sun Oct 10 00:03:42 CEST 2010


        Have you tried "sos":


install.packages('sos') # if not already installed
library(sos)
(gps <- ???GPS)


       This found 63 matches for me right now.  The results open as a 
table in a web browser with the package with the most matches first and 
with hot links to the help page for each match in the right hand column.


       Hope this helps.
       Spencer


On 10/9/2010 2:54 PM, jim holtman wrote:
> No need for a function; you can just write the expression yourself:
>
>> x<- read.table(textConnection("  32 31.85
> +                        59 48.74
> +                         34 05.7
> +                        58 50.79
> +                         34 05.7
> +                        58 50.79
> +                         34 05.7
> +                        58 50.79"))
>> closeAllConnections()
>> x
>    V1    V2
> 1 32 31.85
> 2 59 48.74
> 3 34  5.70
> 4 58 50.79
> 5 34  5.70
> 6 58 50.79
> 7 34  5.70
> 8 58 50.79
>> # convert
>> x$V1 + x$V2 / 60
> [1] 32.53083 59.81233 34.09500 58.84650 34.09500 58.84650 34.09500 58.84650
>
> On Sat, Oct 9, 2010 at 2:49 PM, Mehdi Zarrei<gagzarrei at yahoo.com>  wrote:
>> Hello R-experts,
>>
>> I have some coordinates that look like this:
>> lat                           long
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>                         32 31.85
>>                         59 48.74
>>
>>
>>                          34 05.7
>>                         58 50.79
>>
>>
>>                          34 05.7
>>                         58 50.79
>>
>>
>>                          34 05.7
>>                         58 50.79
>>
>>
>>
>>
>> This was my GPS setting by the time of filed trip. I assume that the second column is "minute + seconds". Am i right? I am looking for a function to convert them to decimal degree.
>>
>> Appreciate it if I get any help.
>>
>> All the best,
>>
>> Mehdi
>>
>>
>>
>>
>>
>>
>>         [[alternative HTML version deleted]]
>>
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>

-- 
Spencer Graves, PE, PhD
President and Chief Operating Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San José, CA 95126
ph:  408-655-4567



More information about the R-help mailing list