Write a DCS formatted dataset to a file that can be uploaded to the Data Collection System.
write_dcs(df, path, type = c("data", "meta"))
data.frame: A DCS formatted data frame. Output of format_dcs()
.
character: A file name to write to.
character: Type, either 'data' or 'meta'.
if (FALSE) {
# Load example data
data("bednets")
# Write DCS 'data' format
df <- format_dcs(bednets, type = "data")
write_dcs(df, path = "data-bednets.xlsx", type = "data")
# Write DCS 'metadata' format
df <- format_dcs(bednets, type = "meta")
write_dcs(df, path = "meta-bednets.xlsx", type = "meta")
}