Learn R Programming

zFactor (version 0.1.9)

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

Description

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

Usage

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

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab