read_eco {DSSAT}R Documentation

Reads parameters from a single DSSAT ecotype parameter file (*.ECO)

Description

Reads parameters from a single DSSAT ecotype parameter file (*.ECO)

Usage

read_eco(
  file_name,
  col_types = NULL,
  col_names = NULL,
  left_justified = c("ECO   ", "ECO#", "ECONAME\\.*", "ECO-NAME\\.*")
)

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 read_fwf or vignette("readr") for more details.

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

Value

a tibble containing the data from the raw DSSAT file

Examples


# Extract file path for sample ecotype file path
sample_eco <- system.file('extdata','SAMPLE.ECO',package='DSSAT')

eco <- read_eco(sample_eco)


[Package DSSAT version 0.0.6 Index]