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.

206 questions
3
votes
0 answers

Rmarkdown: cannot access to data saved in cache

I generate a report in Rmarkdown, where I use the option cache=TRUE in order to save the simulated data frames generated in different chrunks. But when I go to the htlm folder where the data is stored, even though I see the .Rdata files and…
Francisco
  • 179
  • 11
3
votes
1 answer

How to share trained logistic models with others?

I have 5 logistic models trained using the private data. I want them to be validated on another private data by another member. How do I share share the trained models such that they can be evaluated on another system running an arbitrary version of…
Prradep
  • 5,506
  • 5
  • 43
  • 84
3
votes
0 answers

Load an .RData file triggers `Error: embedded nul in string:` error

I am sorry about posting a not reproducible error but the task is with huge and not splittable files (.RData ones to be precise). There are several similar questions, like this one or this other one but they all are made for importing .csv files…
SabDeM
  • 7,050
  • 2
  • 25
  • 38
3
votes
1 answer

How can I update .RData?

After reading this question I attempted to clean out my workspace and found that each time I opened R all the original items I had recently removed were restored. I then checked .RData and found that it had not been modified in a few weeks even…
Stedy
  • 7,359
  • 14
  • 57
  • 77
3
votes
3 answers

R: subset/group data frame with a max value?

Given a data frame like this: gid set a b 1 1 1 1 9 2 1 2 -2 -3 3 1 3 5 6 4 2 2 -4 -7 5 2 6 5 10 6 2 9 2 0 How can I subset/group data frame of a unique gid with the max set value and 1/0 wether its a value is…
Wells
  • 10,415
  • 14
  • 55
  • 85
3
votes
1 answer

Loading data from RData files into a single data table

I'm trying to load data from data frame objects of all .RData files in a specified directory into a single data table. This is how I've tried to do this: library(data.table) fileList <- list.files("../cache/FLOSSmole", pattern="\\.RData$",…
Aleksandr Blekh
  • 2,462
  • 4
  • 32
  • 64
3
votes
2 answers

Can I access R data objects' attributes without fully loading objects from file?

Here's the situation. My R code is supposed to check whether existing RData files in application's cache are up-to-date. I do that by saving the files with names consisting of base64-encoded names of a specific data element. However, data…
Aleksandr Blekh
  • 2,462
  • 4
  • 32
  • 64
3
votes
1 answer

Can I load an RData file while bypassing loading the namespaces?

Let's say some of my users cannot alter their R environments, but I need them to be able to open up RData files. These environment files require a package to be loaded (httpuv to be exact). We don't care about the package, we don't need its…
bokov
  • 3,444
  • 2
  • 31
  • 49
3
votes
3 answers

rdata: Some method to iterate through column names of a data frame?

I have about 30 lines of code that do just this (getting Z scores): data$z_col1 <- (data$col1 - mean(data$col1, na.rm = TRUE)) / sd(data$col1, na.rm = TRUE) data$z_col2 <- (data$col2 - mean(data$col2, na.rm = TRUE)) / sd(data$col2, na.rm =…
Wells
  • 10,415
  • 14
  • 55
  • 85
3
votes
0 answers

Loading a big RData File

I can't load a RData file, I get the following error message > load("GPL570_matrix.Rdata") Error: cannot allocate vector of size 8.9 Gb In addition: Warning messages: 1: Reached total allocation of 5941Mb: see help(memory.size) 2: Reached total…
2
votes
3 answers

Filter rows with max value from a range of columns

I have a df with strings and numbers. I need to filter the max value by group excluding the year (date type). I did this: test type Process RegionName Time Level a b c d e f g h i j k l m n o p q r s t u v w a1 XYZ_1 ABC…
dmoyaec
  • 61
  • 5
2
votes
1 answer

reading rds file in python

When read rds file in python following way: import pyreadr df = prreadr.read_r('/home/test.rds') to turn df into DataFrame, I tried: pd.DataFrame(df) - I get If using all scalar values, you must pass an index message pd.DataFrame(df, columns =…
thomas
  • 21
  • 1
2
votes
0 answers

how does loading an .RData trigger requirePackage?

I load an old .RData, this prints in the console: Loading required package: Error in .requirePackage(package) : unable to find required package ‘’ In addition: Warning message: In library(package, lib.loc = lib.loc, character.only = TRUE,…
elred
  • 21
  • 5
2
votes
0 answers

Restoring overwritten .RData file

So today when starting up, before having my coffee, I accidentally wrote save.image instead of load when trying to load my workspace and now my workspace fill is overwritten by an empty file and I unfortunately have no recent back-up. Rerunning all…
dumei
  • 47
  • 5
2
votes
1 answer

Loading multiple .RData and binding into a single data.frame

I have multiple .RData in a folder. I can load them as follows: df1 <- data.frame(X = 1:10) df2 <- data.frame(X = 1:10) save(df1, file = "df1.RData", compress = "xz") save(df2, file = "df2.RData", compress = "xz") rm(list =…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
1 2
3
13 14