read_cul {DSSAT} | R Documentation |
Reads parameters from a single DSSAT cultivar parameter file (*.CUL)
Description
Reads parameters from a single DSSAT cultivar parameter file (*.CUL)
Usage
read_cul(
file_name,
col_types = NULL,
col_names = NULL,
left_justified = c("VAR#", "VARNAME\\.*", "VAR-NAME\\.*", "VRNAME\\.*"),
use_std_fmt = TRUE
)
Arguments
file_name |
a character vector of length one that contains the name of a single DSSAT output file |
col_types |
One of NULL, a cols() specification, or a string.
See |
col_names |
A character vector of column names; primarily helpful for cases where there are no white spaces between column names within the header line |
left_justified |
A character vector of column names that should be left justified |
use_std_fmt |
logical value indicating whether to read FileX using the standard column formats. If FALSE, column formats will be inferred from tier headers |
Value
a tibble containing the data from the raw DSSAT output
Examples
# Extract file path for sample cultivar file path
sample_cul_file <- system.file('extdata','SAMPLE.CUL',package='DSSAT')
# Read sample cultivar file
cul <- read_cul(sample_cul_file)
[Package DSSAT version 0.0.9 Index]