I need to calculate the frequency of individuals by age and marital status so normally I'd use:
table(age, marital_status)
However each individual has a different weight after the sampling of the data. How do I incorporate this into my frequency table?
You can use function
svytablefrom packagesurvey, orwtd.tablefromrgrs.EDIT :
rgrsis now calledquestionr:That's also possible with
dplyr: