Learn R Programming

EmpiricalDynamics (version 0.1.2)

load_example_data: Load Example Dataset

Description

Load one of the example datasets included with the package.

Usage

load_example_data(name)

Value

A data.frame containing the time series data.

Arguments

name

Name of the dataset to load. Available datasets:

  • "logistic_growth" - Logistic population growth

  • "predator_prey" - Lotka-Volterra predator-prey dynamics

  • "interest_rate" - Vasicek mean-reverting interest rate

  • "epidemic_data" - SIR epidemic model

  • "oscillator_data" - Van der Pol oscillator

  • "business_cycle" - Kaldor-type business cycle

Examples

Run this code
# \donttest{
# Load logistic growth data if available
if(requireNamespace("utils", quietly = TRUE)) {
  try({
    data <- load_example_data("logistic_growth")
    head(data)
  })
}
# }

Run the code above in your browser using DataLab