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


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