powered by
Reads parameters from a single DSSAT cultivar parameter file (*.CUL)
read_cul( file_name, col_types = NULL, col_names = NULL, left_justified = c("VAR#", "VARNAME\\.*", "VAR-NAME\\.*", "VRNAME\\.*") )
a tibble containing the data from the raw DSSAT output
a character vector of length one that contains the name of a single DSSAT output file
One of NULL, a cols() specification, or a string. See read_fwf or vignette("readr") for more details.
read_fwf
vignette("readr")
A character vector of column names; primarily helpful for cases where there are no white spaces between column names within the header line
A character vector of column names that should be left justified
# 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)
Run the code above in your browser using DataLab