Learn R Programming

metrica (version 2.1.0)

import_apsim_db: Import SQLite databases generated by APSIM NextGen

Description

Imports data from SQLite databases (*.db) applied by APSIM Next Generation. It reads one file at a time.

Usage

import_apsim_db(filename = "", folder = ".", value = "report", simplify = TRUE)

Value

An object of class data.frame, but it depends on the argument ‘value’ above

Arguments

filename

file name including the file extension ("*.db"), as a string ("").

folder

source folder/directory containing the file, as a string ("").

value

either ‘report’, ‘all’ (list) or user-defined for a specific report.

simplify

if TRUE will attempt to simplify multiple reports into a single data.frame. If FALSE it will return a list. Default: TRUE.

References

Miguez, F. (2022) apsimx: Inspect, Read, Edit and Run 'APSIM' "Next Generation" and 'APSIM' Classic. R package version 2.3.1, https://CRAN.R-project.org/package=apsimx

Examples

Run this code
# \donttest{
## See [documentation](https://adriancorrendo.github.io/metrica/index.html)
# }

Run the code above in your browser using DataLab