The {data.io} package focuses on reading and writing datasets in different formats in an unified and convenient way. It can deal with labels and units metadata for variables, translation in different languages, and even use a sidecar file for preprocessing the dataset automatically. The same features are also available for a subset of datasets from R packages.
Important functions
read()
is the main function to read data from R packages or files,write()
is the main function to write data to disk. It is compatible withbase::write()
but provides many more features if you indicatetype=
or use it likewrite$type()
.labelise()
adds alabel
, and possibly aunits
attributes to an object, to be used while pretty printing a table or plot.