mins2deg {GCDkit}R Documentation

Recasts degrees and minutes to degrees (with decimal places).

Description

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.

Usage

mins2deg(x="Easting",varname="XX")

Arguments

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

Value

Returns, invisibly, the converted numbers. Appends the recalculated coordinate to the data matrix 'WR'.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

Examples

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")

[Package GCDkit version 6.0 Index]