Questions tagged [rdata]

The Rdata file format is a binary, R specific, file format used to store arbitrary R objects

The Rdata file format is a binary, R specific, file format used to store arbitrary R objects. Saving and restoring of these objects is done using save and load. See their respective documentations for more information.

161 questions
243
votes
2 answers

What are the main differences between R data files?

What are the main differences between .RData, .Rda and .Rds files? Are there differences in compression, etc.? When should each type be used? How can one type be converted to another?
Carlos Cinelli
  • 10,357
  • 8
  • 37
  • 62
103
votes
8 answers

How can I load an object into a variable name that I specify from an R data file?

When you save a variable in an R data file using save, it is saved under whatever name it had in the session that saved it. When I later go to load it from another session, it is loaded with the same name, which the loading script cannot possibly…
Ryan C. Thompson
  • 37,328
  • 27
  • 87
  • 147
73
votes
8 answers

How to see data from .RData file?

I saw some similar qestions and I tried to work it out on my own, but I couldn't. This is my problem: I have to load a isfar.RData file to use it in other computation (which are not important to describe here). And I would like to simply see how…
Ewa
  • 731
  • 1
  • 5
  • 3
72
votes
3 answers

How to save data file into .RData?

I want to save data into an .RData file. For instance, I'd like to save into 1.RData with two csv files and some information. Here, I have two csv files 1) file_1.csv contains object city[[1]] 2) file_2.csv contains object city[[2]] and…
user2913161
  • 973
  • 2
  • 10
  • 14
55
votes
3 answers

Get specific object from Rdata file

I have a Rdata file containing various objects: New.Rdata |_ Object 1 (e.g. data.frame) |_ Object 2 (e.g. matrix) |_... |_ Object n Of course I can load the data frame with load('New.Rdata'), however, is there a smart way to load only…
Seb
  • 4,990
  • 7
  • 25
  • 46
44
votes
6 answers

Loading .RData files into Python

I have a bunch of .RData time-series files and would like to load them directly into Python without first converting the files to some other extension (such as .csv). Any ideas on the best way to accomplish this?
Stu
  • 1,249
  • 3
  • 15
  • 30
20
votes
2 answers

Updating an existing Rdata file

I have found myself in the position of needing to update one or two data objects in an Rdata file previously created using save. If I'm not careful to load the file I can forget to re-save some objects in the file. As an example, I'm working on a…
seancarmody
  • 5,890
  • 1
  • 31
  • 30
11
votes
3 answers

Importing data into R (rdata) from Github

I want to put some R code plus the associated data file (RData) on Github. So far, everything works okay. But when people clone the repository, I want them to be able to run the code immediately. At the moment, this isn't possible because they…
markthekoala
  • 985
  • 1
  • 10
  • 21
11
votes
1 answer

Behavior of saveRDS() and readRDS() in regard to objects' attributes

Do saveRDS and readRDS, correspondingly, save and restore all object's attributes, including ones created by an application (via attr)? I tried to use this approach instead of save and load, in an attempt to find a workaround for my problem linked…
Aleksandr Blekh
  • 2,300
  • 4
  • 25
  • 61
10
votes
4 answers

Reading Rdata file with different encoding

I have an .RData file to read on my Linux (UTF-8) machine, but I know the file is in Latin1 because I've created them myself on Windows. Unfortunately, I don't have access to the original files or a Windows machine and I need to read those files on…
Waldir Leoncio
  • 9,134
  • 14
  • 68
  • 94
9
votes
3 answers

Turning RData file into script files

Is there a straightforward way to turn the functions of a .RData file into a normal code file (.R)?
Christian
  • 21,975
  • 33
  • 117
  • 195
8
votes
4 answers

Serializing .RData file to database

I am working on a project where I have a lot of analysts creating statistical models in R. They usually provide me with the model objects (.Rdata files) and I automate executing them for various datasets. My problem is: Can I use a database and…
harshsinghal
  • 3,600
  • 8
  • 31
  • 32
7
votes
1 answer

What are the file formats that read into R the fastest?

It seems most intuitive that .rdata files might be the fasted file format for R to load, but when scanning some of the stack posts it seems that more attention has been on enhancing load times for .csv or other formats. Is there a definitive answer?
7
votes
1 answer

Size of Rdata file compared to csv

The size of my .Rdata file is 92 MB. However, the original csv-file is around 3 GB. I included it with the usual read.csv() How can that be?
Rico
  • 1,848
  • 2
  • 20
  • 39
6
votes
1 answer

R Password protect .rdata datafile

I'm trying to protect some datafiles I save in R. Is there a way to password protect an R datafile (.Rdata) ? Thank you
Tracy
  • 639
  • 1
  • 8
  • 19
1
2 3
10 11