spssdictionary.IsWeighting Function (R)

spssdictionary.IsWeighting(). Indicates if weighting is in effect for the active dataset. The result is a logical value--TRUE if weighting is in effect, otherwise FALSE.

Example

{if (spssdictionary.IsWeighting())
   cat("Weighting is in effect")
else
   cat("Weighting is not in effect")
}