write_filea {DSSAT}R Documentation

Writes data to a single DSSAT file A

Description

Writes data to a single DSSAT file A

Usage

write_filea(filea, file_name, drop_duplicate_rows = TRUE)

Arguments

filea

a tibble containing the data to write to a DSSAT file A

file_name

a character vector of length one that contains the name of a single DSSAT file into which 'filea' will be written

drop_duplicate_rows

a logical value indicating whether duplicate rows should be dropped from tier_data

Examples


# Extract FileA path for sample file
sample_filea <- system.file('extdata','SAMPLE.CRA',package='DSSAT')

filea <- read_filea(sample_filea)

# Create example FileA file path
sample_filea2 <- paste0(tempdir(),'/SAMPLE.CRA')

# Write out sample FileA
write_filea(filea,sample_filea2)


[Package DSSAT version 0.0.9 Index]