1

我在运行 Crosstable 函数时遇到了 R Studio 崩溃的问题。首先,我正在安装以下软件包:

install.packages ("gmodels"); install.packages("MASS")
library (gmodels); library (MASS)

然后,我在我的数据框上运行以下代码:

CrossTable(dat$PopSize, dat$PCIncChange, fisher = TRUE, chisq = TRUE)
expected = TRUE, sresid = TRUE, format="SPSS")

R 生成表格,但不允许我在控制台中执行任何其他代码。它也不允许我保存文件或退出程序(我每次都必须使用 control alt delete)。

-- 编辑:从评论中添加会话信息 --

sessionInfo(): 
R version 2.15.2 (2012-10-26) 
Platform: x86_64-w64-mingw32/x64 (64-bit) 
locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252; LC_NUMERIC=C [5] LC_TIME=English_United States.1252
attached base packages: [1] splines stats graphics grDevices utils datasets methods base –
other attached packages: [1] MASS_7.3-23 gmodels_2.15.3 Hmisc_3.10-1 survival_2.36-14 stringr_0.6.2 
loaded via a namespace (and not attached): [1] cluster_1.14.3 gdata_2.12.0 grid_2.15.2 gtools_2.7.0 lattice_0.20-10 tools_2.15.2

有任何想法吗?

4

0 回答 0