Learn R Programming

lares (version 4.8.4)

deg2num: Convert from degrees to numeric coordinates [Deprecated]

Description

This function converts degrees (DMS) coordinates into numerical. Note that the sign (S or W) should be assigned manually if needed.

Usage

deg2num(coord, sep = " ")

Arguments

coord

Character vector. Coordinate in format c("DD MM SS")

sep

Character. Separator

See Also

Other Calculus: corr(), dist2d(), model_metrics(), quants()

Examples

Run this code
# NOT RUN {
deg2num("11 12 12")
deg2num("00-00-00", sep = "-")
# }

Run the code above in your browser using DataLab