dbW_weatherData_to_blob: Conversion: R object to (compressed) SQL-blob-ready character...

View source: R/sw_dbW_WeatherDatabase.R

dbW_weatherData_to_blobR Documentation

Conversion: R object to (compressed) SQL-blob-ready character vector

Description

The rSOILWAT2 database which manages daily weather data (each as a list of elements of class swWeatherData), uses internally (compressed) blobs. This function is used to a list of daily weather data used by rSOILWAT2's simulation functions to a blob object which can be inserted into a SQLite DB.

Usage

dbW_weatherData_to_blob(weatherData, type = "gzip")

Arguments

weatherData

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

type

A character string. One of c("gzip", "bzip2", "xz", "none").

See Also

memCompress, serialize


Burke-Lauenroth-Lab/Rsoilwat documentation built on Dec. 9, 2023, 12:41 a.m.