spssdictionary.GetWeightVariable Function (R)
spssdictionary.GetWeightVariable(). Returns the name of the weight variable, or NULL if unweighted.
Example
{if (spssdictionary.IsWeighting())
cat(paste("The weight variable is: ",spssdictionary.GetWeightVariable()))
else
cat("Weighting is not in effect")}