0

R studio中data.table的照片

在此处输入图像描述

我正在尝试对大约 30 列变量的超过 100,000 行(村庄数)的 R 进行多因素分析。这是我的代码行:

HH_amenities <- read.csv("Treated/HH_treated.csv")

res.mfa <- MFA(HH_amenities,
               group = c(3, 4, 2, 4, 3, 2, 5, 3, 4, 2, 2),
               type = c("s", "s", "s", "s", "s", "s", "s", "s", "s", "s", "s"),
               name.group = c("number_rooms","number_pp", "ownership", "drinking", "lighting", "defecation", "drainage", "cooking", "amenities", "living_condition", "drinking_location"),
               num.group.sup = NULL, graph = FALSE)

当我运行MFA命令时,我没有收到任何错误通知,只是需要很长时间才能最终不得不点击停止按钮。我的代码是否有错误,我的数据集是否太大或者我应该更改设置中的某些内容?谢谢

4

0 回答 0