Skip to contents

Convert List of Data Frames to List of Zoo Objects

Usage

utils_prepare_zoo_list(x = NULL, time_column = NULL)

Arguments

x

(required, list of data frames) A named list with data frames. Default: NULL.

time_column

(required, column name) Name of the column representing time, if any. Default: NULL.

Value

A named list of data frames, matrices, or vectors.

Examples

x <- utils_prepare_zoo_list(
  x = list(
    spain = fagus_dynamics[fagus_dynamics$name == "Spain", ],
    sweden = fagus_dynamics[fagus_dynamics$name == "Sweden", ]
  ),
  time_column = "time"
)