dbW_dataframe_to_weatherData: Conversion: data.frame to object of class 'swWeatherData'

View source: R/sw_dbW_WeatherDatabase.R

dbW_dataframe_to_weatherDataR Documentation

Conversion: data.frame to object of class swWeatherData

Description

Conversion: data.frame to object of class swWeatherData

Usage

dbW_dataframe_to_weatherData(
  weatherDF,
  years = NULL,
  weatherDF_dataColumns = NULL,
  round = NA
)

Arguments

weatherDF

A data.frame. Daily weather data where rows represent days and columns represent the weather variables (see weatherDF_dataColumns).

years

A numeric vector. The calendar years.

weatherDF_dataColumns

A vector of character strings. The column names of weatherDF in the correct order for SOILWAT2 including calendar year year (optional) and day of year DOY, see weather_dataColumns().

round

An integer value. The number of decimal places for rounding weather values (or TRUE but no rounding if FALSE or not finite).

Notes

weatherDF_dataColumns consists of a vector with (1) the variable name for day of year, e.g., "DOY", and (2) weather variables, see weather_dataColumns(), or NULL which attempts to guess relevant columns.


DrylandEcology/rSOILWAT2 documentation built on Jan. 12, 2024, 9:06 p.m.