Skip to contents

Updates name, description, type, and/or folder for a Crunch variable.

Usage

crunch_update_properties(
  crunch_ds,
  alias,
  name = NULL,
  description = NULL,
  folder = NULL,
  type = NULL
)

Arguments

crunch_ds

A Crunch Dataset.

alias

Character. Variable alias.

name

Character or NULL. New display name.

description

Character or NULL. New description.

folder

Character or NULL. New folder path (e.g., "Screener/Folder").

type

Character or NULL. New type: numeric, text, or categorical.

Examples

if (FALSE) { # \dontrun{
crunch_ds <- crunch_connect()
crunch_get_dictionary(crunch_ds) |> filter(alias == "s_country") 
crunch_update_properties(
  crunch_ds,
  alias = "s_country",
  name = "Country",
  description = "Country of residence",
  folder = "Screener"
)
crunch_get_dictionary(crunch_ds) |> filter(alias == "s_country") 
} # }