Learn R Programming

treeclim (version 2.0.7.1)

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)

Value

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

Arguments

x

the supplied climate data

varnames

optionally supplied variable names