I am trying to follow your example but when I run the following line:
> temp.table<-wtd.table(dat$allow.f, dat$cntry, weights=dat$pspwght, digits = 0, na.show=FALSE)
I get this error:
Error in proxy[, ..., drop = FALSE] : incorrect number of dimensions
I solved it transforming dat$cntry into a factor:
dat$cntry.f<-to_factor(dat$cntry, drop_unused_labels=TRUE, ordered=TRUE)
I am trying to follow your example but when I run the following line:
> temp.table<-wtd.table(dat$allow.f, dat$cntry, weights=dat$pspwght, digits = 0, na.show=FALSE)I get this error:
Error in proxy[, ..., drop = FALSE] : incorrect number of dimensionsI solved it transforming dat$cntry into a factor:
dat$cntry.f<-to_factor(dat$cntry, drop_unused_labels=TRUE, ordered=TRUE)