See the FAQ: How to do a minimal reproducible example reprex
for beginners. That error message might arise from svydesign()
, probably not from subset()
, but it's impossible to tell. There's not even a complete error message error provided. Up to the user to provide what's needed to make it possible for the community here (we're almost all unpaid volunteers) to help the user.