Check if object is a survey object (created by svydesign())
is_svydesign(x)
x
object to be tested
logical
Tom Elliott