Learn R Programming

tidysynthesis (version 0.1.2)

schema_api: Add, update, or reset a schema object within an existing roadmap.

Description

Add, update, or reset a schema object within an existing roadmap.

Usage

add_schema(roadmap, schema)

update_schema(roadmap, ...)

reset_schema(roadmap)

Value

A new roadmap object.

A roadmap object with added schema.

A roadmap object with updated schema.

A roadmap object with reset schema.

Arguments

roadmap

A roadmap object

schema

A schema object.

...

Optional named parameters passed to schema().

Examples

Run this code

rm <- roadmap(
  conf_data = acs_conf_nw,
  start_data = acs_start_nw
)

acs_schema <- schema(
  conf_data = acs_conf_nw,
  start_data = acs_start_nw,
  na_numeric_to_ind = TRUE
)

rm |>
  add_schema(schema = acs_schema)


rm <- roadmap(
  conf_data = acs_conf_nw,
  start_data = acs_start_nw
)

rm |>
  update_schema(na_numeric_to_ind = TRUE)


rm <- roadmap(
  conf_data = acs_conf_nw,
  start_data = acs_start_nw
)

rm <- rm |>
  update_schema(na_numeric_to_ind = TRUE)

reset_schema(roadmap = rm)
  

Run the code above in your browser using DataLab