Skip to contents

Create a px object from a px file, an Excel metadata workbook, or a data frame.

Usage

px(input, data = NULL)

Arguments

input

Path to px file, path to an Excel metadata workbook, a data frame or path to an .rds or .parquet file with a data frame. If input is a data frame, a px object with minimal metadata is created.

data

Either a data frame or a path to an .rds or .parquet file with a data frame. This can only be used if input is an Excel metadata workbook.

Value

A px object

Examples

# Create px object from dataset
x1 <- px(population_gl)

# Create px object from px file
px_path <- tempfile(fileext = ".px")
url <- "https://bank.stat.gl:443/sq/0cf06962-19f1-4d5c-8d43-b7ed0009617d"
download.file(url, px_path)

x2 <- px(px_path)