Error in proxy[i, ..., drop = FALSE] : incorrect number of dimensions - wtd.table

Hello
I made my thesis with Rstudio, and the codes where fine, and it ran, now I changed my computer and I'm trying to run this code, but gave me this error now:

Error in proxy[i, ..., drop = FALSE] : incorrect number of dimensions

What should I do?

wtd.table(BD_Casen_2013_pm$comuna,BD_Casen_2013_pm$s12,  weights =  BD_Casen_2013_pm$expc)

I ran this:

typeof(Casen_2017_1$comuna)
[1] "double"
typeof(Casen_2017_1$s12)
[1] "integer"
typeof(Casen_2017_1$expc)
[1] "double"

The length are the same in all variables
I have been trying with Casen_2017 (data.table)
I have been trying with Casen_2017 (data.frame)
I have been trying with Casen_2017 (tbl.df)

What I'm missing?, I really need to know, please help me.

From the documentation, the default is to remove NAs. Can you run a sum on your columns, sum(is.na(col))?

Hello, thanks for answer,
I ran the sum, those are the values

sum(is.na(Casen_2017$comuna))
[1] 0
sum(is.na(Casen_2017$s12))
[1] 0
sum(is.na(Casen_2017$expc))
[1] 0

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.