Learn R Programming

zFactor (version 0.1.9)

z.Papp: Papp correlation

Description

Calculate the Z factor with the Papp correlation

Usage

z.Papp(pres.pr, temp.pr, tolerance = 1e-13, verbose = FALSE)

Arguments

pres.pr

pseudo-reduced pressure

temp.pr

pseudo-reduced temperature

tolerance

rounding tolerance to avoid rounding readings that are in the middle of the grid. "tolerance" adds flexibility in deciding point closeness.

verbose

print internal

Examples

Run this code
# NOT RUN {
# Example 1
## one single z calculation
z.Papp(pres.pr = 1.5, temp.pr = 2.0)
# Example 2
## calculate z for multiple values of Tpr and Ppr
ppr <- c(0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5)
tpr <- c(1.3, 1.5, 1.7, 2)
z.Papp(pres.pr = ppr, temp.pr = tpr)
# }

Run the code above in your browser using DataLab