# NOT RUN {
# Create a set of polygon centroids
centroids <- create_centroids(tas_sa2, "SA2_5DIG16")
# Find the closest capital city for the first centroid
closest_focal_point(centroids[1, ], capital_cities)
# }
Run the code above in your browser using DataLab