spssdictionary.SetDataFileAttributes Function (R)
spssdictionary.SetDataFileAttributes(datasetName,attr1,...,attrN). Sets datafile attributes. This
function is used to define datafile attributes for new IBM® SPSS® Statistics datasets created with the SetDictionaryToSPSS function.
- The argument datasetName is the name of the IBM SPSS Statistics dataset
as specified on the call to the
SetDictionaryToSPSSfunction used to create the dataset. - The arguments attr1,...,attrN specify the attributes and are of the form
attrName=attrValue, whereattrNameis the name of the attribute andattrValueis either a single character value or a character vector. Specifying a vector results in an attribute array. - The
SetDataFileAttributesfunction should be called afterSetDictionaryToSPSSand before callingEndDataStep.
Example
spssdictionary.SetDataFileAttributes("results",ver="1",Date="7/20/2007")