You can easily add your own data to EcoCommons notebooks by uploading it directly to the working directory. This allows you to integrate your data into the analysis alongside existing datasets. To add your data:
- Upload the Data – You can upload CSV files, raster files (e.g.,
.tif
), vector files (e.g.,.shp
), and other data formats directly to the working directory within RStudio or Jupyter. - Set the File Path – After uploading the data, adjust the file path in the notebook to point to your dataset. For example, in R, you can set the working directory using:
or load a CSV file with:
- Format the Data – Ensure that your data is formatted correctly to match the model input requirements. For example, species occurrence data should include columns for species name, latitude, and longitude. Environmental data should align with the required spatial resolution and coordinate reference system (CRS).
- Modify the Notebook Code – If necessary, update the data import and processing sections of the notebook to accommodate the structure of your custom data.
EcoCommons notebooks are designed to be flexible, allowing you to combine your custom data with built-in datasets. If you encounter issues with data formatting or loading, the EcoCommons support team and documentation are available to help troubleshoot and guide you through the process.