今天早上我正在处理一些数据,R冻结了。我重新启动,不再能够加载我的数据。我不确定发生了什么事。我花了几个小时。我尝试了Rstudio,它有效,有点。并非我所有的代码都转移到了Rstudio中的函数中。我宁愿让它在常规R控制台中工作。加载Stata 13和Rdata文件时出现问题。新问题
我跑
R version 3.4.0 (2017-04-21) -- "You Stupid Darkness"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)
MAC OSX 10.12.5
的数据可以在这里找到: http://www.worldvaluessurvey.org/WVSDocumentationWV5.jsp
我不使用集成的数据,因为我单独运行两个波 - 我不需要每波。
setwd('~/Desktop/')
dat1 <- read.dta13('WV5_data_stata_V_2015_04_18.dta')
#File not found.
dat1 <- read.dta13('WV5_data_stata_V_2015_04_18.dta',convert.factors = TRUE, generate.factors = FALSE, encoding = "UTH-8", fromEncoding =NULL, convert.underscore = FALSE, missing.type = FALSE, convert.dates = TRUE, replace.strl = TRUE, add.rownames = FALSE, nonint.factors = FALSE, select.rows = NULL)
#File not found.
dat1 <- read.dta13('~/Desktop/WV5_data_stata_V_2015_04_18.dta')
#File not found.
dat1 <- read.dta13('WV5_data_stata_V_2015_04_18.dta',convert.factors = TRUE, generate.factors = FALSE, encoding = "UTH-8", fromEncoding =NULL, convert.underscore = FALSE, missing.type = FALSE, convert.dates = TRUE, replace.strl = TRUE, add.rownames = FALSE, nonint.factors = FALSE, select.rows = NULL)
#File not found.
dat1 <- read.dta13('~/Desktop/WV5_data_stata_V_2015_04_18.dta',convert.factors = TRUE, generate.factors = FALSE, encoding = "UTH-8", fromEncoding =NULL, convert.underscore = FALSE, missing.type = FALSE, convert.dates = TRUE, replace.strl = TRUE, add.rownames = FALSE, nonint.factors = FALSE, select.rows = NULL)
#File not found.
dat<- load("WV5_Data_R_v_2015_04_18 2.rdata")
class(dat)
#[1] "character"
#Your version of R is up to date
那么,发生什么事?错误?意外的结果?什么 ....?哦,现在我编辑了代码部分,问题就变成了......你知道如何使用你的文件系统工具吗?尝试从该页面下载时,我收到一条错误消息。你成功了吗?如果你认为你做了,那就证明一下。 –
它说:'文件未找到'。我很好。谢谢您的好意。 – NikFord