Learn R Programming

Chaos01 (version 1.2.1)

getVal: Get the vector of Kc/c values from the chaos01.res object.

Description

This function allows easy extraction of Kc/c values from the chaos01.res object.

Usage

getVal(x, vars = "both")

Arguments

x

the object of "chaos01.res" class, produced by testChaos01 function when parameter out = "TRUE". Subset the output of the function to get the results for the concrete c. See the example.

vars

list/vector define what should be plotted.

  • "both" - both variables "Kc" and "c" will be returned in data.frame

  • "Kc" - vector of "Kc" values will be returned

  • "c" - vector of "c" values will be returned

Default is "both").

Value

Vector of Kc or c values, or data.frame including both vectors if vars = "both".

References

Gottwald G.A. and Melbourne I. (2004) On the implementation of the 0-1 Test for Chaos, SIAM J. Appl. Dyn. Syst., 8(1), 129<U+2013>145.

See Also

testChaos01

Examples

Run this code
# NOT RUN {
vec.x <- gen.logistic(mu = 3.55, iter = 2000)

#Kc for each value of c
res2 <- testChaos01(vec.x, out = TRUE)

results <- getVal(res2, vars = "both")
print(head(results))

#Get results of 0-1 test for Chaos when out = TRUE
K <- median(getVal(res2, vars = "Kc"))
# }

Run the code above in your browser using DataLab