adj_neg | R Documentation |

`adj_neg()`

converts numeric values `x`

< 1 into values
>= 1, keeping absolute differences between values by shifting intensity
values with the value of the smallest number.
`make_rel()`

converts values `x`

into relative values between
0 and 1 using the standard normalization equation.
If `na.rm`

is `TRUE`

, missing values are removed before the
computation proceeds.

adj_neg(x, na.rm = FALSE) make_rel(x, na.rm = FALSE)

`x` |
a numeric vector or an |

`na.rm` |
logical. Should missing values be removed? |

`adj_neg()`

is used in Open Specy to avoid errors that could
arise from log transforming spectra when using
`adj_intens()`

and other functions.
`make_rel()`

is used in Open Specy to retain the relative
height proportions between spectra while avoiding the large numbers that can
result from some spectral instruments.

`adj_neg()`

and `make_rel()`

return numeric vectors
with the normalized data.

Win Cowger, Zacharias Steinmetz

`min()`

for the calculation of minima;
`adj_intens()`

for log transformation functions

adj_neg(c(-1000, -1, 0, 1, 10)) make_rel(c(-1000, -1, 0, 1, 10))

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.