import_apsim_db: Import SQLite databases generated by APSIM NextGen

View source: R/import_apsim_db.R

import_apsim_dbR Documentation

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)

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.

Value

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

Note

This function was adapted from apsimx package (Miguez, 2022). For reference, we recommend to check and use the function apsimx::read_apsimx() as an alternative. Source: https://github.com/femiguez/apsimx by F. Miguez.

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


## See [documentation](https://adriancorrendo.github.io/metrica/index.html)


metrica documentation built on June 30, 2024, 5:07 p.m.