Learn R Programming

Rparadox (version 0.2.1)

pxlib_metadata: Get Metadata from a Paradox Database File

Description

Retrieves metadata from an open Paradox file handle without reading the entire dataset.

Usage

pxlib_metadata(pxdoc)

Value

A list containing:

num_records

The total number of records in the database.

num_fields

The total number of fields (columns).

encoding

The character encoding specified in the file header (e.g., "CP1251").

fields

A data frame with details for each field, with names recoded to UTF-8.

Arguments

pxdoc

An object of class pxdoc_t, representing an open Paradox file connection, obtained from pxlib_open_file().

Examples

Run this code
db_path <- system.file("extdata", "country.db", package = "Rparadox")
pxdoc <- pxlib_open_file(db_path)
if (!is.null(pxdoc)) {
  metadata <- pxlib_metadata(pxdoc)
  print(metadata)
  pxlib_close_file(pxdoc)
}

Run the code above in your browser using DataLab