Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Variable.update

Variable.update({ label, description, valueLabels }) → Promise<Variable>

Updates the variable's metadata. Only the options that are provided are changed. The variable must belong to a table in an unreleased version of a dataset, or to an upload. To update many variables at once, see Table.updateVariables().

Parameters:

label : string, optional

description : string, optional

valueLabels : object, optional A map of values to their labels, e.g. { 1: 'Male', 2: 'Female' }.

Returns: Promise<Variable>, this variable.

Was this helpful?