Skip to contents

Inspect or change MATRIX.

Usage

px_matrix(x, value)

# S3 method for class 'px'
px_matrix(x, value)

Arguments

x

A px object

value

Optional. A character string. If missing, the current MATRIX is returned. If NULL, an error is thrown because MATRIX cannot be removed.

Value

A px object or a character string.

Examples

# Set MATRIX
x1 <-
   px(population_gl) |>
   px_matrix('POPULATION')

# Print MATRIX
px_matrix(x1)
#> [1] "POPULATION"