# NOT RUN {
# Data
data("m_matrix", package = "biosurvey")
data1 <- m_matrix$data_matrix
# Finding the closest point to the centroid
centroid <- closest_to_centroid(data1, x_column = "Longitude",
y_column = "Latitude", space = "G",
n = 1, id_column = NULL)
# }
Run the code above in your browser using DataLab