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
0
votes
1 answer

How to convert a csv file to an R.Data file

I have a csv file I generated in Python. I now need to convert it to an R.Data file for further downstream analyses, but I have no idea how to accomplish this. Someone else asked this question a few years back but it has no solutions. Would really…
newbzzs
  • 295
  • 2
  • 8
0
votes
1 answer

Integer datatypes with missing values changes to object in python using pyreadr package, after importing data from RData file

I want to execute some python functions using data from '.RData' file. I am using the 'pyreadr' python package for the same. Here is example of R Code library(data.table) # Example data <- data.table(x_num=c(1,1.5,2), …
Pawan Rama Mali
  • 526
  • 2
  • 9
0
votes
1 answer

Error: Unable to load time variables with missing values in python using pyreadr package from RData file

I want to execute some python functions using data from '.RData' file. I am using the 'pyreadr' python package for the same. Here is example of R Code library(data.table) # Creating demo data frame data <- data.table(x_time =…
Pawan Rama Mali
  • 526
  • 2
  • 9
0
votes
1 answer

NotImplementedError: Type RObjectType.EXTPTR not implemented, when using rdata package in Python

I am trying to read an RData file in Python using the rdata package. I am using the following function: test = rdata.parser.parse_data("Input/my_file.RData") and I get the following error: NotImplementedError: Type RObjectType.EXTPTR not…
userLx
  • 81
  • 8
0
votes
0 answers

Opening RData objects

I am trying to open an RData object that I downloaded from github, using the load function. I have tried in a few versions of R (going back to 3.4.0 and 4.2.0) and receive the same error message, pasted below. Thanks! Error in load(paste0(mydir,…
Riva
  • 1
0
votes
1 answer

Saving each data.frame of list with write_xlsx

Want to save each data.frame of a list separately as a Excel Workbook with write_xlsx function. Able to save each data.frame of a list separately as .RData but not as Excel Workbook. Any thoughts. library(tidyverse) library(writexl) df1 <-…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
0
votes
1 answer

Converting RData to CSV file returns incorrect CSV file

I do not have any expertise on R and I have to convert RData files to CSV to analyze the data. I followed the following links to do this: Converting Rdata files to CSV and "filename.rdata" file Exploring and Converting to CSV. The second option…
Ritu
  • 35
  • 1
  • 7
0
votes
0 answers

Specific RData file causes GitHub package to fail upon install

everyone. I am creating an R package to be installed from GitHub. My R package includes several RDS files, but two RDS files cause the following cryptic error when I try to install the package from GitHub: Downloading GitHub repo…
generic
  • 302
  • 1
  • 3
  • 14
0
votes
1 answer

Saving then loading a `tibble` causes it to be not recognised by S4 methods

I have an obscure problem in R that involves the S4 class system. First I create a tibble and save it: df = tibble::tibble(a=1:5, b=2:6) save(df, file="foo.Rdata") Next, I close the R session, and start a new one (which for some reason…
Migwell
  • 18,631
  • 21
  • 91
  • 160
0
votes
1 answer

Git-hub corrupts RData files

I am uploading a file image (RData) to git-hub. When the file image is generated thus: save.image("myfile.RData",compress = FALSE, version = 3) I have no issue loading it back into R. However, if I put the same file image into git-hub and try to…
MCS
  • 1,071
  • 9
  • 23
0
votes
3 answers

Select rows from a dataframe based on a condition and then assign a priority number to them in a new column

I have a data set which has information on number of cases of an event reported in each grid. no of cases grid number 12 454 22 345 34 67 My task is to assign priorities to each of the grid boxes based on the number of cases which…
shine
  • 23
  • 4
0
votes
0 answers

How can I extract the code from .RData file and convert them in .R format?

I'm running into some trouble. I have Rfile which is in .RData format. I want to dig into the r-code to see how they created the project? Is there a way to convert .RData into .R or .rmd? I tried the below code but it is not working. newEnv <-…
Hardik
  • 1
0
votes
1 answer

How to loop multiple .Rdata objects from AWS/S3 into a list in R

So I have several large .Rdata objects stored in one bucket of PUMS data. There are 10 files I need to load into R (10 years of data) to do analyses. I am having issues loading or looping multiple files from S3 into R. Here is how to load one object…
crb61
  • 1
  • 1
0
votes
1 answer

Text mining between a data frame column and 2 lists in R

So i created two lists composed of words : fruits <- c("banana","apple","strawberry") homemade <- c("kitchen","homemade","mom","dad","sister") And here is my dataset description isCake apple cake cooked by mom YES pie from the…
katdataecon
  • 185
  • 8
0
votes
1 answer

Save .RData in a different directory

I load my files (.RData) from a particular folder, and i created a subfolder to save some samples and subsets. So, i want to save these elements in the subfolder, and they don't have the same name structure because i have multiple datasets (for…
katdataecon
  • 185
  • 8