get_XN5statevar_xno: Get State Variable Results

Description Usage Arguments Value Examples

View source: R/get_XN5statevar_xno.R

Description

By specifying mylocations$my.xno.path the function internally will look for ALL .xno files and search for results of the state variables of interest

Usage

1
2
3
4
5
get_XN5statevar_xno(
  mylocations,
  state.vars = "output.Plant.Development Stage.BBCH Stage [-]",
  query.return = FALSE
)

Arguments

mylocations

a list with two named elements. The names matter.

my.xno.pathcharacter specifying the path where the xno files should be searched in.
my.output.pathcharacter specifying the folder where the results should be saved.
state.vars

a character specifying the name of the state variable(s) which should be collected. You might want to use the function get_columnNames_xno to verify if these exist.

query.return

default to FALSE. Specifying TRUE will result in the function returning the collected results.

Value

a data.table with the state variable results specified in state.vars and searched for in location my.xno.path.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
# initialise list
mylocations <- list()
setwd("C:/Projects/ExpertN/expertn513d/built")
# assign paths:
# 1. location of xno.paths
mylocations$my.xno.path    <- "./cfg/replicateECv10/"
# 2. location of output
mylocations$my.output.path <- "C:/Projects/ExpertN/myresults"

colnam <- get_columnNames_xno("./cfg/replicateECv10/output/replicateECv10_0_0_0_0.xno")
state.vars <- colnam[c(210,197)]


## End(Not run)

tkdweber/XN5setup documentation built on July 4, 2021, 7:34 a.m.