read_apsimx: Read APSIM-X generated .db files

View source: R/apsimx.R

read_apsimxR Documentation

Read APSIM-X generated .db files

Description

read SQLite databases created by APSIM-X runs. One file at a time.

Usage

read_apsimx(file = "", src.dir = ".", value = "report", simplify = TRUE)

Arguments

file

file name

src.dir

source directory where file is located

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.

Details

Read APSIM-X generated .db files

Value

normally it returns a data frame, but it depends on the argument ‘value’ above

Note

if there is one single report it will return a data.frame. If there are multiple reports, it will attempt to merge them into a data frame. If not possible it will return a list with names corresponding to the table report names. It is also possible to select a specific report from several available by selecting ‘value = ReportName’, where ‘ReportName’ is the name of the specific report that should be returned. If you select ‘all’ it will return all the components in the data base also as a list.

See Also

read_apsimx_all


apsimx documentation built on Sept. 11, 2024, 5:42 p.m.