convert into degrees minutes seconds and give code from 1 (low accuracy) to 8 (high accuracy) of accuracy
Usage
coord_accuracy(.data, col_x, col_y, rounding = TRUE)
Arguments
- .data
A data.frame with longitude and latitude in decimal degrees
- col_x
Column name containing the longitude.
- col_y
Column name containing the latitude.
- rounding
Round or not secondes.
Value
tibble provided with an additional column calc_accuracy.
Examples
test <- dplyr::tibble(x = c(8.8633, 6.2, 4), y = c(0.1321, 0.22, 1))
coord_accuracy(test, col_x = "x", col_y = "y")
#> # A tibble: 3 × 3
#> x y calc_accuracy
#> <dbl> <dbl> <dbl>
#> 1 8.86 0.132 7
#> 2 6.2 0.22 6
#> 3 4 1 1