为什么我得到的错误是无法在R中创建更多2 ^ 31个元素的表

Sne*_*n27 5 r

您好我在维度8个障碍60变量的R中有一个数据帧记录,缺失的值替换为NA,其他值是单词.

当我尝试将这样的数据帧制成表格时,feeds<-table(record)我得到一个错误说:

Error in table(record) : attempt to make a table with >= 2^31 elements
Run Code Online (Sandbox Code Playgroud)

我的数据框的一些示例元素/结构是

INC - CORP Application Issue    INC - CORP Issue    INC - PC Software Issue
Affected User                   Affected User       Affected User
Attachment                      Attachment          Attachment
Description / Priority          Business Critica..  Configuration Item
Knowledge Search                Client ID           Contact Info
NA                              Description / Pr..  NA                      
Run Code Online (Sandbox Code Playgroud)

我不明白错误,因为数据框中的元素显然甚至不接近2 ^ 31.

谢谢你的时间.

sam*_*gok 6

这是一个老话题,但它可能会帮助其他人,这也是我发布它的原因。我遇到了同样的问题,我从我不记得的地方找到了在线解决方案,它对我来说非常有效。希望对有需要的人有用。

solution<-as.data.frame(table(unlist(record)))
Run Code Online (Sandbox Code Playgroud)