writeDDI {spssDDI} | R Documentation |
writeDDI
produces a valid DDI Version 3.0 XML document from readSpssSav
output.
writeDDI(l,spssSavFile,studyunit="ID",maxNumberMissings=100)
l |
readSpssSav output. |
spssSavFile |
Character string: the name of the SPSS System file. |
studyunit |
Character string: a unique string that identifies the study. |
maxNumberMissings |
Number: maximum number of missing values in the missingValue DDI's attribute. |
writeDDI
generates the following DDI content: Citation, Abstract, UniverseReference, Purpose, LogicalProduct (CategoryScheme, CodeSchemes, VariableScheme),
PhysicalDataProduct (including ProprietaryRecordLayout for SPSS), PhysicalInstance.
The function doesn't return a value.
To validate the DDI instance, please enable physicaldataproduct_proprietary:3_0_Beta.
Guido Gay
## Not run: benchmark<-readSpssSav("benchmarkSpss16.sav") writeDDI(benchmark,"benchmarkSpss16.sav") essSample<-readSpssSav("essSample.sav") sink("essSample.xml") writeDDI(essSample,"essSample.sav") sink() ## End(Not run)