write_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
write_cul(cul, file_name)
Arguments
cul |
a DSSAT_tbl containing the contents of a DSSAT cultivar parameter file |
file_name |
a character vector of length one that contains the name of a single DSSAT output file |
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)
# Create example cultivar file path
sample_cul_file2 <- paste0(tempdir(),'/SAMPLE.CUL')
# Write out sample cultivar file
write_cul(cul,sample_cul_file2)
[Package DSSAT version 0.0.9 Index]