emptyMatrix | R Documentation |
Creates an empty matrix based on the local 'spatial.csv' file and saves it to 'distances.csv' so the user can manually fill it.
emptyMatrix(input = "spatial.csv")
input |
Either a data frame with spatial data or the path to the file containing the spatial information. |
It is highly recommended to read the manual page regarding distances matrices before running this function. You can find it here: https://hugomflavio.github.io/actel-website/manual-distances.html
An empty matrix with the rows and columns required to operate with the target spatial file.
# This function requires a file with spatial information
# Fetch location of actel's example files
aux <- system.file(package = "actel")[1]
# run emptyMatrix on the temporary spatial.csv file
emptyMatrix(paste0(aux, "/example_spatial.csv"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.