[英]R (rStudio): View error 'names' attribute [4] must be the same length as the vector [1] for character vector
[英]Error in View : 'names' attribute [1] must be the same length as the vector [0]
我有一個由項目響應組成的數據文件(最右邊的數字代表響應頻率)
當我試圖用expand.table
功能包mirt
它給了我下面的錯誤
視圖錯誤:“名稱”屬性1的長度必須與矢量[0]相同
有人可以幫我看看這個問題嗎?
您的數據不是表,因此我對expand.table
的使用感到困惑
你的目的是什么?
可能您需要做的是通過strsplit()
或substring()
等分隔字符串,並使用table()
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.