write_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

write_eco(eco, file_name)

Arguments

eco

a DSSAT_tbl containing the contents of a DSSAT ecotype 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 ecotype file path
sample_eco_file <- system.file('extdata','SAMPLE.ECO',package='DSSAT')

# Read sample ecotype file
eco <- read_eco(sample_eco_file)

# Create example ecotype file path
sample_eco_file2 <- paste0(tempdir(),'/SAMPLE.ECO')

# Write out sample ecotype file
write_eco(eco,sample_eco_file2)


[Package DSSAT version 0.0.9 Index]