Write a tab delimited csv file as expected by the ESAS upload module.
Source:R/Export_ESAS_Upload_Matrix.R
Export_ESAS_Upload_Matrix.Rd
This function exports a data frame to a tab-delimited file without row names, column names, or quotes, using the specified file encoding.
Arguments
- table
A data frame or matrix to be exported as returned by
Transform_ESAS_Tables_4_Upload()
- path
Directory path where the file will be saved.
- filename
Character string specifying the name of the output file without the extension.
See also
Other upload functions:
Transform_ESAS_Tables_4_Upload()
Examples
if (FALSE) { # \dontrun{
#Read 4 ESAS tables:
ESAS_TABLES_LIST <- Read_ESAS_Tables(path = "./Data/",
file_encoding = "UTF-8")
#Convert tables to upload format:
ESAS_4_UPLOAD <- Transform_ESAS_Tables_4_Upload(campaigns_tbl = ESAS_TABLES_LIST$CAMPAIGNS,
samples_tbl = ESAS_TABLES_LIST$SAMPLES,
positions_tbl = ESAS_TABLES_LIST$POSITIONS,
observations_tbl = ESAS_TABLES_LIST$OBSERVATIONS,
data_provider = "202",
country = "BE")
#Export upload table:
Export_ESAS_Upload_Matrix(table = ESAS_4_UPLOAD,
path = "./Output/",
export_name = "ESAS_4_upload")
} # }