名称属性错误;必须与sdcMicro中的向量长度相同

时间:2020-06-05 10:13:17

标签: r

我试图使用sdc包创建一个sdcMicro对象,但出现此错误。

    sdc_hh <- createSdcObj(dat=hh, keyVars=keyvar_hh, hhId = c("Id"))
    Error in names(x) <- value : 
      'names' attribute [2] must be the same length as the vector [1]
    In addition: Warning messages:
    1: In measure_riskWORK(manipData, keyVars, w = w, hid = hhId, alpha = alpha,  :
      NAs introduced by coercion
    2: In max(table(dataX[, 1]), na.rm = TRUE) :
      no non-missing arguments to max; returning -Inf

有人知道可能是什么问题吗?

0 个答案:

没有答案