write_filea: Writes data to a single DSSAT file A

View source: R/write_filea.R

write_fileaR 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)


DSSAT documentation built on Nov. 9, 2023, 1:08 a.m.