Calculate XPT number_rows using metadata and final chunk #261
Labels
enhancement
New feature or request
requires changes in Readstat
waiting for changes in the C library Readstat
solved on dev
Describe the issue
According to the documentation for xpt metadata,
number_rows
cannot be determined unless the entire dataset is read. I understand thatnumber_rows
cannot be extracted from the metadata alone, but I think it can be calculated using only the metadata and final 80-byte chunk.Expected behavior
variable_storage_widths
and thestart
of record datarecord_storage_width
as sum ofvariable_storage_widths
padding
there is.(total_file_size - start - padding) / record_storage_width
The text was updated successfully, but these errors were encountered: