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
0 answers

Save separate element from object to Rdata in R

This kind of question is already on Stackoverflow but it did not seem to solve my 'specific' problem. I am imputing missing values into a dataset with the imputation package missForest. The output is a list with two elements and one of them is ximp…
MLnewby
  • 139
  • 1
  • 2
  • 8
0
votes
0 answers

Adding and updating data in R packages

I'm writing my own R package to carry out some specific analyses for which I make a bunch of API calls to get some data from some websites. I have multiple keys for each API and I want to cycle them for two reasons: Ensure I don't go over my daily…
Gautam
  • 2,597
  • 1
  • 28
  • 51
0
votes
1 answer

How to extract code from .Rdata file?

I have .Rdata file that "stores" some logic/code. How can I extract the code written in this .Rdata file? I want to edit/fix this code, but instead the general pipeline loads this .Rdata with it's variables and SVM model without the option to fix…
Steves
  • 39
  • 1
  • 8
0
votes
1 answer

R: Unable to view data when importing RData file

I am trying to import and view data in .RData file at my Windows 7 (x64) machine. I am using this command: my_df <- load("~path_to_file/my_file.RData") Data load seems to be fine. But: head(my_df) returns: [1] "dfAllxY" Can someone help me to…
khajlk
  • 791
  • 1
  • 12
  • 32
0
votes
0 answers

Loading Huge single `rdata` vs Loading small multiple `rdata`

I have a huge nested list of R objects. I can split them into many smaller lists (say 160) and save them individually in 160 .rda or .rds files. My question is: Is it better (efficient) to load one big rdata file into memory and do all the task or…
TheRimalaya
  • 4,232
  • 2
  • 31
  • 37
0
votes
1 answer

What is inside .RData file

I would like to investigate what is inside .RData file. I tried to load .RData file and discovered that it consists of string: load("~/Desktop/expDatDT.RData") [1] "ret" How can I obtain data about elements inside this .RData file? How can I check…
Olha Kholod
  • 539
  • 1
  • 5
  • 11
0
votes
0 answers

Trouble opening RData file - wrong data format?

I´m new to R. I worked with R and saved my workspace Run3_Anova. When loading the workspace into R it does not work. I have checked the directory getwd() and set it with set(wd) according to the desired directory. I tried to load it in from the task…
Sofi
  • 1
  • 1
0
votes
1 answer

convert Datatable to csv file in R

I uploaded an excel file into shiny R using following code: Server.r #reative function to read a table MDPData<-reactive({ file1<-input$MDPhistorical if(is.null(file1)){return()} z<-as.data.frame(read.xlsx(file1$datapath,sheetName =…
user
  • 592
  • 6
  • 26
0
votes
0 answers

ARULES Package Error in lhs %ain% newBasket : table contains an unknown item label

Summary: I am creating Basket Analysis Rules with RStudio by using the Arule Package. I am saving the WorkSpace to a file (i.e. x.RDATA). And using the R.DOTNET Nuget PackAge in VS.NET to Query the Rule. I am Calling RFunction sending…
0
votes
1 answer

How to read RData file with R

How can I read RData with httr? I tried a couple of things but I got error a) download.file(downloadURL, "temp.rData") load("temp.rData") b) bin = getBinaryURL(downloadURL, ...yourOtherParams...) writeBin(bin, "temp.rData") …
Tinniam V. Ganesh
  • 1,979
  • 6
  • 26
  • 51
0
votes
2 answers

Loop over a subset, source a file and save results in a dataframe

Similar questions have been asked already but none was able to solve my specific problem. I have a .R file ("Mycalculus.R") containing many basic calculus that I need to apply to subsets of a dataframe: one subset for each year where the modalities…
Elixterra
  • 281
  • 1
  • 3
  • 11
0
votes
0 answers

How do I load RData according to the user's inputs on R Shiny App?

I am creating an app using R's Shiny app package. I want to load specific RData according to the user's inputs. However, when I run the app it can't seem to be loading the RData properly. Here follows the code that I am currently using: dataset <-…
R. Guerra
  • 21
  • 4
0
votes
1 answer

tableau sort rownames as data source order

i have a rdata file that looks like this when i import into Tableau: Rownames(Abc) cat(#) mouse(#) dog(#) cat 1.0 0.8 0.7 mouse 0.8 1.0 0.5 dog 0.7 0.5 1.0 When i put measure names into Columns…
jxn
  • 7,685
  • 28
  • 90
  • 172
0
votes
0 answers

Print or write RData file to view file contents

I have a .RData file that has multiple objects of varying type and size. I can't view by printing, because I can only see half the objects (even when I increase max.print to its maximum). I also don't think I can write to .txt file or .csv file…
samps
  • 1
0
votes
0 answers

How to use .first() function in R in .Rdata mode

I'm trying to customize my R setup. I understood the part where we can put our functions(.First/Last) in Rprofile.site or .Rprofile. but I want to take .Rdata route. As I understand that if I have a .First/.Last function in any of the .R file in my…
Chirayu Chamoli
  • 2,076
  • 1
  • 17
  • 32