Skip to content

Incorrect number of dimensions when running wtd.table #1

Description

@sbacelar

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions