Learn R Programming

treeclim (version 1.0.13)

as_tcclimate: Create the correct data format for variable selection

Description

Check the climate data that is either supplied as a matrix, a data.frame, or a list of data.frames. Reformat the data for further usage into the internal format.

Usage

as_tcclimate(x, varnames = NULL)

Arguments

x
the supplied climate data
varnames
optionally supplied variable names

Value

  • a data.frame with years in rows and monthly observations in columns