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

Load RData into Shiny - data loaded in R workspace but not in Shiny, no errors produced

Objective: I seek to download a data set (in .RData format) I have uploaded on GitHub to a Shiny app, and use the data set for various plotting purposes. Technique: I am using the source_data function from the repmis package to load the data into my…
info_seekeR
  • 1,296
  • 1
  • 15
  • 33
0
votes
0 answers

Loading 83mb RData Object from twitteR Package

I have an 83.356MB RData file that contains only one list object. The list object has 10 elements, each of which is "status" object, which is created when querying the Twitter API using the twitteR package. When I tried to load this object…
Ravi
  • 119
  • 1
  • 5
0
votes
0 answers

How to save R object to the disk when permission is denied?

I have computed an R object which takes a lot of time. But while saving it to a file using write.csv, I am getting an error as Error in file(file, ifelse(append, "a", "w")) : cannot open the connection In addition: Warning message: In file(file,…
exAres
  • 4,806
  • 16
  • 53
  • 95
0
votes
1 answer

R: getting list of matching data frame values

Two data sets: people <- read.table(text=" pid 1 2 3 4 ", header=TRUE) comps <- read.table(text=" pid comp rank 1 1 0 1 3 1 1 2 2 2 4 0 2 1 1 2 3 2 3 1 0 3 2 1 3 4 2 ", header=TRUE) Trying to get a data…
Wells
  • 10,415
  • 14
  • 55
  • 85
0
votes
0 answers

R plyr & adply to dplyr (and mutate?) with a custom function

I have a custom function that looks like: f <- function(case, data, variance, limit) { data <- subset(data, pid != case$pid) # do some stuff out <- data.frame( pid=case$pid, comp=data$pid ) …
Wells
  • 10,415
  • 14
  • 55
  • 85
0
votes
0 answers

Long path name Workspace fails to load in R

I have a large number of .Rdata files that I am loading into R to perform some analyses on, approximately 65 500. Each file represent a statistical model in order to perform an APM analyese. Since I named each file after the model it holds, some of…
SamPassmore
  • 1,221
  • 1
  • 12
  • 32
0
votes
1 answer

Combine different elements of the same list in different R workspaces

For example: Three R workspaces A.RData, B.RData and C.RData. In A.RData: A list object list.example <- list(1,2) In B.RData: The same name list object list.example <- list(NULL,NULL,3) In C.RData: The same name list object list.example <-…
chankey
  • 23
  • 3
0
votes
1 answer

Read in large CSV file in R and export as multiple RData files using number of rows and skip

I'm attempting to import and export, in pieces, a single 10GB CSV file with roughly 10 million observations. I want about 10 manageable RData files in the end (data_1.RData, data_2.Rdata, etc.), but I'm having trouble making the skip and nrows…
kstats9pt3
  • 799
  • 2
  • 8
  • 28
0
votes
1 answer

rdata: drawing lines on a plot per subset of data

I feel like I should be able to accomplish this one with call to lines() but I have the following: data <- read.csv(...) set1 <- subset(data, level='one') set2 <- subset(data, level='two') set3 <- subset(data, level='three') plot(x=data$year,…
Wells
  • 10,415
  • 14
  • 55
  • 85
0
votes
1 answer

Is there a way to use sql statements when loading .Rdata files into R?

I prefer storing my data frames by saving them as .Rdata file because saving them as a csv file will take much more directory space. However, when using csv I can load the files using sql statements (R package sqldf). Is there a package available…
rdatasculptor
  • 8,112
  • 14
  • 56
  • 81
0
votes
2 answers

Making a CSV file into an RData file

Please bear with an R newbie here. I'm trying to follow along with a tutorial published on the wonderful flowingdata.com site by using my own data to replace the .Rdata file included in the tutorial. The Rdata file, "unisexCnts.RData", contains…
eoin
  • 329
  • 1
  • 5
  • 12
0
votes
0 answers

Can not save a data.frame into Rdata or CSV file

I was trying to save a large dataframe (nrow x ncol = 40000 x 3000) into a Rdata file. I got it either saved as empty file or just failed to save it. The space in the saving directory was enough. I am wondering if the dataframe I was trying to save…
nomoreraster
  • 13
  • 1
  • 5
0
votes
1 answer

Error when trying to interactively load data file saved by paused batch script

In the process of debugging and solving my problem with retrieving attributes (Can I access R data objects' attributes without fully loading objects from file?), based on advice here on SO, I switched from using save() and load() to saveRDS() and…
Aleksandr Blekh
  • 2,462
  • 4
  • 32
  • 64
0
votes
1 answer

read txt file with some data missing

I do realize similar questions have already been posed, but given that none of the answers provided solves my problem, frustration is beginning to set in. The problem is the following: I have 27 identically shaped time series data (date, Open, High,…
user3612816
  • 325
  • 2
  • 11
0
votes
1 answer

R "magic": file can be found via 'source' and cannot via 'make'

Maybe it's something trivial and I simply was looking for too long at the same code... When sourcing R module getFLOSSmoleDataXML.R via RStudio, the code correctly detects .Rdata files in cache directory and skips downloading and parsing phases.…
Aleksandr Blekh
  • 2,462
  • 4
  • 32
  • 64
1 2 3
13
14