potentialTemperatures | R Documentation |
List of available potential temperature functions
potentialTemperatures(DF) # use $name to get desired function, before (DF)
DF |
A data.frame containing PSXC, ATX, EWX, and optionally PLWCD. If the latter is not present, zero is used for WetEquivalentPotentialTemperature. |
An object of class list
of length 6.
Contains PotentialTemperature, EquivalentPotentialTemperature, BoltonEquivalentPotentialTemperature, RossbyEquivalentPotentialTemperature, VirtualPotentialTemperature, and WetEquivalentPotentialTemperature in a list that can be used with lapply(potentialTemperatures, function(f) f(DF)) with DF a data.frame containing PSXC, ATX, EWX, and optionally PLWCD (for WetEquivalentPotentialTemperature). To use individual functions: potentialTemperatures$EquivalentPotentialTemperature(DF)
The function value: one of the listed potential temperatures. More concise output is obtained from str(lapply(potentialTemperatures, function (f) f(DF), digits.d = 5)
William Cooper
PTS <- lapply(potentialTemperatures, function(f) f(RAFdata[, c('PSXC', 'ATX', 'EWX')])) ThetaV <- mean(potentialTemperatures$VirtualPotentialTemperature(RAFdata[, c('PSXC', 'ATX', 'EWX')]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.