dbW_weatherData_round: Round weather data

View source: R/sw_dbW_WeatherDatabase.R

dbW_weatherData_roundR Documentation

Round weather data

Description

Round weather data

Usage

dbW_weatherData_round(
  weatherData,
  digits = 4L,
  weatherDF_dataColumns = weather_dataColumns()
)

Arguments

weatherData

A list of elements of class swWeatherData that each hold daily weather data for one calendar year.

digits

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

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().

Value

A list with class swWeatherData elements or a data frame where columns represent weather variables (depending on weatherData).

Notes

weatherDF_dataColumns lists the columns of weatherData to be rounded.


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