read_output {DSSAT} | R Documentation |
Reads data from a single DSSAT output file
Description
Reads data from a single DSSAT output file
Usage
read_output(
file_name,
col_types = NULL,
col_names = NULL,
left_justified = NULL,
read_only = NULL,
store_v_fmt = FALSE
)
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 |
read_only |
NULL or a character vector of column names that should be read in; If non-NULL only the columns listed will be read in. |
store_v_fmt |
a logical value indicating whether or not to store the format for variables being read |
Value
a tibble containing the data from the raw DSSAT output
Examples
# Extract file path for sample output file path
sample_output <- system.file('extdata','SAMPLE.OUT',package='DSSAT')
out <- read_output(sample_output)
[Package DSSAT version 0.0.9 Index]