mins2deg {GCDkit} | R Documentation |
The functions serves to recast strings in the form 48°53.6814' to decimal values in degrees. As separators are used the 'degree' sign (unicode + 00B0) and apostrophe, respectively. There are no spaces.
mins2deg(x="Easting",varname="XX")
x |
a text string, to be interpreted directly, or a colname of variable in 'labels' |
varname |
a name of a numeric variable in 'WR' to store the recalculated output |
Returns, invisibly, the converted numbers. Appends the recalculated coordinate to the data matrix 'WR'.
Vojtech Janousek, vojtech.janousek@geology.cz
data(sazava) accessVar("sazava") WR<-WR[1:5,] x<-c("48°53.6814'","48°53.6814'","48°53.6814'","48°53.6814'","48°53.6814'") mins2deg(x,"E")