inv.temp: Inverse of temperature

Description Usage Arguments Details Author(s) Examples

Description

Function for creating a temperature centred value of temperature. Useful for creating a column for linear modelling of data to make the intercept meaningful

Usage

1
inv.temp(x, K = c("Y", "N"), Tc)

Arguments

x

temperature data, can be K or ÂșC. Default is for Kelvin.

K

Whether or not the data is in degrees centigrade or Kelvin. Defaults to K.

Tc

The desired normialised temperature. Without specification will default to the mean temperature.

Details

Calculated as either:

(1/ Boltzmann's constant / mean temperature) - (1 / Boltzmann's constant/ Temperature)

(1/ Boltzmann's constant / Tc) - (1 / Boltzmann's constant/ Temperature)

Author(s)

Daniel Padfield

Examples

1
2
3
4
5
6
7
8
x <- seq(313, 330, 1)

inv.temp(x)
inv.temp(x, Tc = 50) 

y <- seq(1,30,1)
inv.temp(y, 'N')
inv.temp(y, 'N', Tc = 15)

padpadpadpad/TeamPhytoplankton documentation built on May 24, 2019, 5:59 p.m.