Learn R Programming

marelac (version 2.1.11)

convert_p: Conversion Between Different Barometric Units

Description

The function converts between different units of pressure.

Usage

convert_p(x, unit = c("Pa", "bar", "at", "atm", "torr"))

Value

A data frame with converted values.

Arguments

x

vector of given pressure values,

unit

measurement unit of the given value(s).

References

https://en.wikipedia.org/wiki/Bar_(unit)

See Also

convert_AStoPS, convert_PStoAS, convert_RtoS, convert_StoCl, convert_StoR, convert_T,

Examples

Run this code
convert_p(1, "atm")
convert_p(c(2, 3, 4.5), "bar")

convert_p(1, "atm")$Pa

Run the code above in your browser using DataLab