Learn R Programming

photosynthesis (version 1.0.2)

ppm2pa: Convert pressure from PPM to Pascals

Description

Convert pressure from PPM to Pascals

Usage

ppm2pa(ppm, P)

Arguments

ppm

Pressure value in umol/mol of class units

P

Atmospheric pressure value in kPa of class units

Value

Value in Pa of class units

Details

$$\mathrm{Press}(kPa) = \mathrm{Press}(ppm) P(kPa)$$ $$\mathrm{Press}(Pa) = 1000 \mathrm{Press}(kPa)$$

Examples

Run this code
# NOT RUN {
ppm <- set_units(400, "umol/mol")
P <- set_units(101.325, "kPa")
ppm2pa(ppm, P)

# }

Run the code above in your browser using DataLab