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 SetDictionaryToSPSS function used to create the dataset.
  • The arguments attr1,...,attrN specify the attributes and are of the form attrName=attrValue, where attrName is the name of the attribute and attrValue is either a single character value or a character vector. Specifying a vector results in an attribute array.
  • The SetDataFileAttributes function should be called after SetDictionaryToSPSS and before calling EndDataStep.

Example

spssdictionary.SetDataFileAttributes("results",ver="1",Date="7/20/2007")