getStandingKatzMatrix: Generate a matrix of Standing-Katz pseudo-reduced pressure...

Description Usage Arguments Examples

View source: R/Standing-Katz.R

Description

Generate a matrix of Standing-Katz pseudo-reduced pressure and tenperature by giving vector values

Usage

1
2
getStandingKatzMatrix(ppr_vector = NULL, tpr_vector = NULL,
  pprRange = "lp")

Arguments

ppr_vector

a vector of pseudo-reduced pressure

tpr_vector

a vector of pseudo-reduced temperatures

pprRange

Takes one of two values: "lp": low pressure, or "hp" for high pressure. Default: "lp"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# if we want to know all digitized values of Ppr at a Tpr curve
tpr_vec <- c(2.0)
getStandingKatzMatrix(tpr_vector = tpr_vec,
                       pprRange = "lp")
# or to extract at a Ppr=1.5
getStandingKatzMatrix(tpr_vector = tpr_vec, pprRange = "lp")[1, "1.5"]
# for two vectors
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)
sk <- getStandingKatzMatrix(ppr_vector = ppr, tpr_vector = tpr)
print(sk)

zFactor documentation built on Aug. 1, 2019, 5:04 p.m.