defineStudyArea: Preparing study area for Canadian projects

Description Usage Arguments Author(s) Examples

View source: R/defineStudyArea.R

Description

Downloads, reprojects, crops and masks to speficic areas in canada such as: boreal, random areas, provinces and territories, or any of the last in the boreal.

Usage

1
2
3
4
5
6
defineStudyArea(
  testArea = NULL,
  specificTestArea = NULL,
  mapSubset = NULL,
  destinationFolder = tempdir()
)

Arguments

testArea

Logical. Indicates if the test area should be anything other than 'NULL'. Default is 'NULL'.

specificTestArea

A character string with a province or territory, or 'boreal'. if boreal region (following Brandt et al., 2013) is wanted. Default is 'NULL'.

mapSubset

If specificTestArea is supplied as 'boreal', this can be set as a character string with a province or territory that is contained in the boreal or 'Canada' if the whole Canadian boreal is wanted. Default is 'NULL'.

destinationFolder

Path to where to save downloaded files. Default is 'tempdir()'.

Author(s)

Tati Micheletti

Examples

1
2
3
4
5
6
7
8
## rp is the whole North American boreal region
rp <- defineStudyArea(testArea = TRUE, specificTestArea = "boreal", mapSubset = NULL)

## Alberta
rp <- defineStudyArea(testArea = TRUE, specificTestArea = "Alberta", mapSubset = NULL)

## Alberta inside boreal extension
rp <- defineStudyArea(testArea = TRUE, specificTestArea = "boreal", mapSubset = "Alberta")

tati-micheletti/usefulFuns documentation built on July 7, 2020, 3:19 p.m.