Exports an IQRdataGENERAL object

This function exports an IQRdataGENERAL object as CSV dataset. There are several options. On request (and in addition to the CSV) file an XPT file can be exported. A define file in IQReport rmd syntax will be generated as well on request. Meta information that is stored as attributes in the IQRdataGENERAL object will be stored in a separate attributes text file (filename.atr). The exported dataset will contain any columns that are present in the data input argument.

export_IQRdataGENERAL(data, filename = NULL, FLAGxpt = FALSE,
  FLAGdefine = TRUE, addColLabels = NULL, FLAGzip = FALSE)

Arguments

data

IQRdataGENERAL object

filename

Filename of the data file to create (not more than 8 characters without extension - if FLAGxpt=TRUE)

FLAGxpt

If TRUE then a SAS XPT file will be generated additionally

FLAGdefine

If TRUE then a "filename"_define.rmd file will be generated additionally. The syntax of this file is in the IQReport markdown syntax and allows human readbility. The IQReport software can subsequently be used to convert this file to Microsoft WORD, allowing further editing and saving as a PDF file. Please read the documentation for the exportDEFINE_IQRdataGENERAL function to learn more about IQReport.

addColLabels

List with named elements. Names are column names and the value of an element is the label. If defining addColLabels for columns that are already handled automatically, the provided labels will overwrite the automatic ones. Example: addColLabels <- list(IXGDF="Other label",NEWCCOL="Label for NEWCOL"). This information is needed only for XPT and define file generation

FLAGzip

If TRUE then the exported data files (.csv, .atr, .xpt, .docx, .rmd, etc.) will be zipped and placed in the potential path in the "filename" as the filename.dat.zip. Other files will be removed.

See also

Other IQRdataGeneral: +.IQRdataGENERAL, IQRcalcTAD, IQRdataGENERAL, IQRexpandADDLII, IQRloadCSVdata, IQRsaveCSVdata, addIndivRegressors_IQRdataGENERAL, addLabel_IQRdataGENERAL, attributes0, blloqInfo_IQRdataGENERAL, blloq_IQRdataGENERAL, check_IQRdataGENERAL, clean_IQRdataGENERAL, combine_IQRdataGENERAL, convertCat2Text, covImpute_IQRdataGENERAL, date2dateday_IQRdataProgramming, date2datetime_IQRdataProgramming, date2time_IQRdataProgramming, exportDEFINE_IQRdataGENERAL, exportSYS_IQRdataGENERAL, getLabels_dataframe, getNAcolNLME_IQRdataGENERAL, handleSameTimeObs_IQRdataGENERAL, is_IQRdataGENERAL, loadATRinfo_csvData, loadAttributeFile, load_IQRdataGENERAL, mapCategoricalCovariate_IQRnlmeProject, mapCategoricalCovariate_csvData, mapContinuousCovariate_IQRnlmeProject, mapContinuousCovariate_csvData, mutateCov_IQRdataGENERAL, obfuscate_IQRdataGENERAL, plot.IQRdataGENERAL, plotCorCat_IQRdataGENERAL, plotCorCovCat_IQRdataGENERAL, plotCorCov_IQRdataGENERAL, plotCovDistribution_IQRdataGENERAL, plotDoseSchedule_IQRdataGENERAL, plotIndiv_IQRdataGENERAL, plotRange_IQRdataGENERAL, plotSampleSchedule_IQRdataGENERAL, plotSpaghetti_IQRdataGENERAL, print.IQRdataGENERAL, removeCommata_dataframe, rmAMT0_IQRdataGENERAL, rmDosePostLastObs_IQRdataGENERAL, rmIGNOREd_IQRdataGENERAL, rmMissingTIMEobsRecords_IQRdataGENERAL, rmNOobsSUB_IQRdataGENERAL, rmNonTask_IQRdataGENERAL, rmPLACEBO_IQRdataGENERAL, rmSubjects_IQRdataGENERAL, setIGNORErecords_IQRdataGENERAL, setMissingDVobsRecordsIGNORE_IQRdataGENERAL, subset.IQRdataGENERAL, summary.IQRdataGENERAL, summaryCat_IQRdataGENERAL, summaryCov_IQRdataGENERAL, summaryObservations_IQRdataGENERAL, transformObs_IQRdataGENERAL, unlabel_dataframe