exampleData | R Documentation |
optimLanduse comes bundled with exemplary data for land-use optimization. The files can also be found on your computer in the package folder './extdata'. These examples provide some quick applications of the package for demonstration and an example of the expected data structure of the data. Consider also the GitHub project page for exemplary applications of the package.
exampleData(fileName = "exampleGosling.xlsx")
fileName |
Name of the example file. See 'details' section for further explanation of all provided examples. |
exampleGosling.xlsx contains the freely available data from Gosling et al. (2020). exampleEmpty.xlsx contains a template for your data.
The path to the example file on your computer.
Gosling, E., Reith, E., Knoke, T. et al. Exploring farmer perceptions of agroforestry via multi-objective optimisation: a test application in Eastern Panama. Agroforest Syst 94, 2003–2020 (2020). https://doi.org/10.1007/s10457-020-00519-0
require(readxl)
path <- exampleData()
read_xlsx(path, col_names = FALSE)
path <- exampleData("exampleGosling.xlsx")
read_xlsx(path, col_names = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.