spssdictionary.CloseDataset Function (R)

spssdictionary.CloseDataset(datasetName). Closes the specified dataset. This function closes a dataset created by the SetDictionaryToSPSS function. It cannot be used to close an arbitrary open dataset, only datasets created from R. When used, it must be called prior to EndDataStep.