简体   繁体   中英

Trouble opening .Rdata file

I'm attempting to pull metadata from the CCES .

When I download the file that's for R (.Rdata), then load it ( load("/Users/DanielEGreen/Downloads/CCES12_Common_VV.RData") ), it keeps saying "object is not found" .

I've moved it to various folders (eg, /Users/DanielEGreen/School/ etc. etc.) but nothing seems to budge.

In my g.environment, there is the data with 114,155 obs., yet 1 variable is shown which is RDX2.

I am semi-new to R and metadata collecting; I've pulled GSS info before but that's because you can download the .csv file and I know how to attach that directly to R.

Loading data works fine for me using:

df <- load("CCES12_Common_VV.RData")

Your RData is probably in a wrong directory. If you don't use the full path then your file has to be in a working directory. You can check your working directory with getwd() . Then you need to set the working directory to the folder where your RData file is with setwd() .

Alternatively, you can specify the full path when loading the RData file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM