| Title: | Read Dynamic Group (dg/dgz) Data Files |
|---|---|
| Description: | Fast reader for dg (dynamic group) and dgz (compressed) data files. These files store collections of named arrays with support for nested and ragged (variable-length) data, commonly used in neuroscience and behavioral research. |
| Authors: | David Sheinberg [aut, cre] |
| Maintainer: | David Sheinberg <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 1.1.0 |
| Built: | 2026-05-31 22:58:12 UTC |
| Source: | https://github.com/SheinbergLab/dgread |
Retrieves a dynamic group by name from an embedded dlsh Tcl interpreter (via the tcltk bridge) and returns it as a named list.
dg.get(groupname, convert.underscore = FALSE)dg.get(groupname, convert.underscore = FALSE)
groupname |
Name of the dynamic group in the Tcl interpreter. |
convert.underscore |
If |
A named list of the group's columns, or NULL if the group
does not exist.
Reads a dynamic-group data file – plain .dg, gzip-compressed
.dgz, or LZ4 .lz4 – into a named list. Each element is a
column; nested / ragged columns are returned as lists.
read.dgz(file, convert.underscore = FALSE) read.dg(file, convert.underscore = FALSE)read.dgz(file, convert.underscore = FALSE) read.dg(file, convert.underscore = FALSE)
file |
Path to the |
convert.underscore |
If |
A named list of the group's columns.
d <- read.dgz(system.file("extdata", "sample.dgz", package = "dgread")) names(d)d <- read.dgz(system.file("extdata", "sample.dgz", package = "dgread")) names(d)