Re: [R] converting text coordinates to decimal degrees

2004-06-01 Thread Barry Rowlingson
Barry Rowlingson wrote: I receive GPS readings in a text string such as "0121.6723S 03643.6893E" and need the coordinates as decimal degrees in two separate variables: "-1.361205" and "36.728155". How do I do this in R? - this works for the single test case you've given us: Whoops, it doesn't.

Re: [R] converting text coordinates to decimal degrees

2004-06-01 Thread Barry Rowlingson
Mikkel Grum wrote: I receive GPS readings in a text string such as "0121.6723S 03643.6893E" and need the coordinates as decimal degrees in two separate variables: "-1.361205" and "36.728155". How do I do this in R? you'd use some string processing functions, like strsplit, nchar, maybe grep and

[R] converting text coordinates to decimal degrees

2004-06-01 Thread Mikkel Grum
I receive GPS readings in a text string such as "0121.6723S 03643.6893E" and need the coordinates as decimal degrees in two separate variables: "-1.361205" and "36.728155". How do I do this in R? mikkel __ [EMAIL PROTECTED] mailing list https://www.sta