dbOutput_subset: Make a copy of 'dbOutput' with a subset of tables and/or...

Description Usage Arguments

View source: R/OutputDatabase.R

Description

The copy includes all design tables and their full content and a subset of the records and/or fields of the output tables.

Usage

1
2
3
4
5
6
7
8
9
dbOutput_subset(
  dbOut_fname,
  dbNew_fname,
  fields_include = NULL,
  fields_exclude = NULL,
  subset_scenarios = NULL,
  subset_experiments = NULL,
  verbose = FALSE
)

Arguments

dbOut_fname

A character string. The file path of the main dbOutput.

dbNew_fname

A character string. The file path and name of the new copy of the database with a subset of the values of dbOutput.

fields_include

A named list of vectors with character strings. The field names per table to be selected. Each table is represented by a correspondingly named element. If NULL, then all tables and all fields are included. If a named element is NULL, then all fields of the corresponding table are included. Except for those fields listed in fields_exclude.

fields_exclude

A named list of vectors with character strings. The field names per table to be excluded from the subset. Each table is represented by a correspondingly named element. If NULL, then no fields are excluded from the subset operation.

subset_scenarios

A vector of character strings. If not NULL, then only records are copied with a P_id that belongs to an included scenario.

subset_experiments

A vector of character strings. If not NULL, then only records are copied with a P_id that belongs to an included experimental treatment label. This and the subset_scenarios condition are combined with a logical AND.

verbose

A logical value.


Burke-Lauenroth-Lab/rSFSW2 documentation built on Aug. 14, 2020, 5:20 p.m.