RData (.rdata, .rda)
Updatedshow changes
- Import supports the RData format.
Background & Context

-
- R data format family.
- Stores a collection of typed objects.
- Supports ASCII, binary and XDR (big-endian binary) representations.
- Supports GZIP, BZIP2 and XZ compressions.
- Released in 1995 with an initial version of R.
Import

- Import["file.RData"] imports an RData file as a list of data.
- Imported RData is represented in the Wolfram Language by real or integer numbers, strings, Boolean values True and False, and DateObject specifications.
- Import["file.RData",elements] imports the specified elements.
- Import["file.RData",{elem,suba,subb,…}] imports a subelement.
- The import format can be specified with Import["file","RData"] or Import["file",{"RData",elem,…}].
- Import supports the following data types:
-
"Boolean" Booleans "Date" dates as a list of DateObject objects "Integer32" 32-bit integers "Real64" IEEE double‐precision numbers "String" string of characters "Timestamp" time instances - See the following reference pages for full general information:
-
Import import from a file CloudImport import from a cloud object ImportString import from a string ImportByteArray import from a byte array
Import Elements

- General Import elements:
-
"Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements - Data representation elements:
-
"Data" two-dimensional array "Dataset" table data as a Dataset "LabeledData" association of labels and data "RawData" raw data given as lists or NumericArray objects "Tabular" list of Tabular objects "TabularAssociation" association of labels and Tabular objects - Import by default uses the "Data" element.
- Data descriptor elements:
-
"DataFormat" descriptions and types of columns "Labels" names of columns "ObjectCount" number of objects stored in file "ObjectNames" names of the objects stored in file - Metadata elements:
-
"Dimensions" dimensions of the data "Version" version of the RData specification for the file
Options

- Import option:
-
"IndeterminateValues" Automatic replacement values for infinity, NaN, etc. - Use "IndeterminateValues" to provide replacement rules for different values. The following settings are supported:
-
val a fixed value val for any indeterminate value <"NaN"…,"Inf"…,"-Inf"… > specific replacements depending on the type indeterminate
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Import Elements (11)
Data Representation (5)
"Data" (1)
"LabeledData" (1)
"RawData" (1)
Import an RData file as data given as lists or NumericArray objects:
In[1]:=1

✖
https://wolfram.com/xid/0edrryfr2-l998qe
Out[1]=1

"Tabular" (1)
Import an RData file as lists of labels and Dataset objects:
In[1]:=1

✖
https://wolfram.com/xid/0edrryfr2-cx6rhv
Out[1]=1

"TabularAssociation" (1)
Import an RData file as an association of labels and Tabular objects:
In[1]:=1

✖
https://wolfram.com/xid/0edrryfr2-p3wd88
Out[1]=1
