| write_tier | R Documentation |
Writes data from a single DSSAT data tier
write_tier( tier_data, pad_name = NULL, drop_duplicate_rows = FALSE, drop_na_rows = TRUE )
tier_data |
a tibble containing the data to write out |
pad_name |
a character vector of column names for which to add leading spaces/trailing periods |
drop_duplicate_rows |
a logical value indicating whether duplicate rows should be dropped from tier_data |
drop_na_rows |
a logical value indicating whether rows containing all NA values should be dropped from tier_data |
a character vector
tier_data <- data.frame(TRNO=1:4,HWAM=rnorm(4,2000,250)) tier_data <- add_v_fmt(tier_data,v_fmt=c(TRNO='%6.0f', HWAM='%6.0f')) output <- write_tier(tier_data)