pr_addindex: add a spectral index to the list of available ones

Description Usage Arguments Details Value Examples

View source: R/pr_addindex.R

Description

Function used to add a spectral index to the list of available ones

Usage

1
pr_addindex(Name, Formula, Description = NA, Sensitivity = NA, Reference = NA)

Arguments

Name

'character' Name of the new index (e.g., "myindex")

Formula

'character' Formula of the index. In the formula, bands are to be referred to the prefix "R", followed by the required wavelength /e.g., "R600 / R720"

Description

'character', Optional description of the index (e.g., "My Index for Nitrogen"), Default: NULL

Sensitivity

'character', Optional specification of index sensitivity (e.g., "Nitrogen concentration"), Default: NULL

Reference

'character', Optional specification of index literature reference (e.g., "me et al., (2020)), Default: NULL

Details

DETAILS

Value

NULL - The function is called for its side effects

Examples

1
2
3
4
5
6
7
8
## Not run: 
if(interactive()){
pr_addindex(Name = "myindex", Formula = "R600 / R700",
           Description = "My custom Index",
           Reference = "Me (2020)")
 }

## End(Not run)

lbusett/prismaread documentation built on Feb. 22, 2022, 7:33 p.m.