var_name_unnested: Get unnested variable names

var_name_unnestedR Documentation

Get unnested variable names

Description

Returns the unnested analogue(s) of the specified variable name(s), which result from unnesting. For variable names that do not refer to nested list columns, var_names is simply returned as-is.

Usage

var_name_unnested(var_names)

Arguments

var_names

Variable name(s). Those not present in data_codebook remain untouched. A character vector.

Value

A character vector of the same length as var_names.

See Also

Other referendum metadata functions: data_codebook, prettify_var_names(), val_lbls(), val_scale(), var_vals()

Other variable unnesting functions: unnest_var()

Examples

rdb::var_name_unnested("inst_object_revision_modes")
rdb::var_name_unnested(paste0("topics_tier_", 1:3))

zdaarau/c2d documentation built on Dec. 18, 2024, 1:24 p.m.