Learn R Programming

TroublemakeR

The goal of TroublemakeR is to generate an r package which will help generate spatially explicit problems from spatial data to AMPL optimization software

Installation

You can install the development version of TroublemakeR from GitHub with:

# install.packages("devtools")
devtools::install_github("Sustainscapes/TroublemakeR")

Example

This is a basic example which shows you how to solve a common problem:

library(TroublemakeR)
## basic example code

Copy Link

Version

Install

install.packages('TroublemakeR')

Monthly Downloads

145

Version

0.0.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Derek Corcoran

Last Published

April 3rd, 2023

Functions in TroublemakeR (0.0.1)

define_cells

Define Cells
landuse_names

Landuse names
Species

A list of 4 species with its projected distribution for 4 landuses
create_budget

Create budget
species_suitability

Calculate species suitability
write_cell_param

Write cell parameters
troublemaker

Troublemaker
species_suitability_landuse

Calculate species suitability for each landuse
CurrentLanduse

A PackedSpatRaster of the current landuse
Current

A PackedSpatRaster of 4 species with its projected distribution for current conditions
species_names

Species names
write_ampl_lines

Writes an AMPL line
Species_Landuse

A list of 4 species with its projected distribution for 4 landuses