# A vector of Irish grid references of different precisions
v <- c("N8090", "D1234588800", "W34", "", "D12T")
# Convert south west corners of Irish grid references to Irish Grid coordinates
igr_to_ig(v)
# Convert centroids of Irish grid references to Irish Grid coordinates
igr_to_ig(v, centroids = TRUE)
# Specify column names
igr_to_ig(v, coords = c("e", "n"))
# Also return the precision in metres of each Irish grid reference
igr_to_ig(v, precision = "prec")
Run the code above in your browser using DataLab