Learn R Programming

pxmake (version 0.17.0)

px_validate: Check px object

Description

Runs a number of checks on px object to see if it is valid.

Usage

px_validate(x)

Value

A valid px object.

Arguments

x

A supposed px object.

Details

This check is run by default by all px_* functions, but can be skipped by using validate = FALSE. This can be useful on large px objects where the checks are time consuming. Instead of validating on every modifying function px_validate() can be run as the final step to validate the object.

Examples

Run this code
# Turn off validation for modifying functions, and manually
# run validation as final step in creating px object.
x1 <-
  px(population_gl, validate = FALSE) |>
  px_title("Test", validate = FALSE) |>
  px_validate()

Run the code above in your browser using DataLab