简体   繁体   English

在R中以原始格式导出数据

[英]Exporting data in raw format in R

I will briefly describe my problem in here... I am working with Access database file (.accdb), due to some compatibility issues I had to run 32 bit version of R to access the database and import data. 我将在这里简要描述我的问题...由于某些兼容性问题,我必须运行32位版本的R才能访问数据库和导入数据,因此我正在使用Access数据库文件(.accdb)。 I have imported the data but when I try to do some operations on the data file (merging) I run into an error 我已经导入了数据,但是当我尝试对数据文件进行一些操作(合并)时,我遇到了错误

Error: cannot allocate vector of size 152.1 Mb 

So my solution for this is, import the data using 32bit version and run the program in 64bit version. 因此,我的解决方案是使用32位版本导入数据并以64位版本运行程序。 (Is there any better way to do this ??) (有没有更好的方法可以做到这一点?)

My question is what is the best way to export data from R? 我的问题是从R导出数据的最佳方法是什么? I dont want to export them into excel/csv files as writing/reading them will again consume a lot of time. 我不想将它们导出到excel / csv文件中,因为写入/读取它们将再次消耗大量时间。 How do I export raw data in R and how do import this data into my new environment (64 bit )? 如何在R中导出原始数据,以及如何将这些数据导入新环境(64位)? Or is there any better method to do this? 还是有更好的方法来做到这一点?

in 32 bit: 在32位中:

save(list=ls(), file='~/r_workspace.RData')

and then in 64 bit: 然后在64位中:

load(file='~/r_workspace.RData')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM