Every export of @deckyard/statfiles. Guides are listed in the introduction.
jennifer
import"@deckyard/statfiles/"as statfiles;
A reader takes the file as bytes (fs.readBytes) and returns a Dataset. A malformed file or a bad argument throws Error{kind: "statfiles"}; a file over a cap (Options.maxCells, the unpacked size of compressed SPSS cases or of a compressed .sas7bdat, a .sas7bcat's size or label count) is kind "limit". A name is a variable's name exactly as stored; a row counts from 0.
the file's type: Stata byte ... double, str<n>, strL; SPSS and SAS numeric / string
width as int
the bytes a value takes: a string variable's width (0 for a Stata strL); a number's stored size (Stata 1 to 8, .sav / .zsav 8, SAS 3 to 8, XPORT 2 to 8, .por 0)
format as string
the display format: %9.0g, F8.2, DATE9.
valueLabels as map of string to string
value labels, keyed by valueKey (Stata .a keyed ".a")
missingValues as list of string
values SPSS declares missing, as valueKey writes them
the text's character set, overriding the file's; "" for the file's own
maxCells as int
the most cells read, or value labels read from a .sas7bcat; kind "limit" beyond
maxBytes as int
the most bytes compressed SPSS cases (.zsav zlib blocks, and bytecode in the uncompressed layout) or the rows of a compressed .sas7bdat unpack to, and the largest .sas7bcat; kind "limit" beyond