Skip to contents

Reads the raw bytes of a legacy-format dataPath zip member: PSPP's spv_legacy_data_decode(), ported. Returns the per-"source" (variable group) case data needed to reconstruct a pivot table once cross-referenced against the sibling path XML member's dimension/category structure — see .spv_decode_legacy_table().

Usage

.spv_decode_legacy_data(raw)

Arguments

raw

raw vector: the exact bytes of the .bin zip member.

Value

a list of sources, each list(source_name, variables) where variables is a list of list(var_name, values), values a list of list(d, s) per case (numeric xor string; NA for the unused side). NULL if the member cannot be decoded.