libr {libr} | R Documentation |
Libnames, Data Dictionaries and Data Steps
Description
The libr package brings the concepts of data libraries, data dictionaries, and data steps to R. A data library is an object used to define and manage an entire directory of data files. A data dictionary is a data frame full of information about a data library, data frame, or tibble. And a data step allows row-by-row processing of data.
The functions contained in the libr package are as follows:
libname
: Creates a data librarydictionary
: Creates a data dictionarydatastep
: Perform row-by-row processing of datalib_load
: Loads a library into the workspacelib_unload
: Unloads a library from the workspacelib_sync
: Synchronizes the workspace with the library listlib_write
: Writes library data to the file systemlib_add
: Adds data to a librarylib_replace
: Replaces data in a librarylib_remove
: Removes data from a librarylib_copy
: Copies a data librarylib_delete
: Deletes a data librarylib_info
: Returns a data frame of information about the librarylib_path
: Returns the path of a data librarylib_size
: Returns the size of the data library in bytesimport_spec
: Defines an import spec for a specific filespecs
: Contains all the import specs for a library
Note that the libr package is intended to be used with small and medium-sized data sets. It is not recommended for big data, as big data requires very careful control over which data is or is not loaded into memory. The libr package, on the other hand, tends to load all data into memory indiscriminately.
See Also
Useful links:
Report bugs at https://github.com/dbosak01/libr/issues