## Continuing example from `validate()`...
suppressWarnings(dm <- (\(){
tmp <- as_coords(c(5160.4659, 4932.7726, 4806.4339, 3853.3696, 0.0000, -3706.7044, -5306.2869, -2514.4093,
-007.6754, 1823.9137, -12246.7203, -7702.1145, 0.0000, -1217.3178, 7331.0370, -5731.1536), fmt = 2)
names(tmp) <- rep(c("Nelson's Column", "Ostravice", "Tally Ho", "Washington Monument", "Null Island",
"Tristan da Cunha", "Mawson Peak", "Silvio Pettirossi International Airport"), 2)
latlon(tmp) <- rep(c(TRUE, FALSE), each = 8)
tmp
})())
## Review "coords" object in degrees and minutes, having
## an erroneous first value of more than 60 minutes
review(dm)
###
## Continuing example from `validate()`...
suppressWarnings(
wp <- as_waypoints(data.frame(
name = c("Nelson's Column", "Ostravice", "Tally Ho", "Washington Monument", "Null Island",
"Tristan da Cunha", "Mawson Peak", "Silvio Pettirossi International Airport"),
lat = c(51.507765, 49.54621, 48.107232, 38.889494, 0, -37.11174, -93.104781, -25.240156),
lon = c(-0.127924, 18.398562, -122.778671, -77.035242, 0, -12.28863, 73.517283, -57.519227)
), fmt = 1)
)
## Review "waypoints" object in decimal degrees, having an erroneous
## penultimate latitude absolute value greater than 90 degrees
review(wp)
rm(dm, wp)
Run the code above in your browser using DataLab