Skip to content
Prev 359353 / 398502 Next

How to reach the column names in a huge .RData file without loading it

On 16/03/2016 1:40 PM, Jan Kim wrote:
I agree with the sentiment, but not with the choice of .csv as a "sane, 
portable, textual format".  CSV has no type information included, so 
strings that contain only digits can turn into numbers (and get rounded 
in the process), things that look like
dates can get converted to different formats, etc.

The .RData format has the disadvantages of being hard to use outside R, 
but at least it is usable in R.

I don't know what I'd recommend if I wanted a portable textual format.  
JSON is close, but it can't handle the full
range of data that R can handle (e.g. no Inf).  dput() on a dataframe is 
text, but nothing but R can read it.

Duncan Murdoch