parse_cds_enums: Parse enum type columns (picklists, states, etc.) to keys or...

Description Usage Arguments Value

Description

This function can be used to easily swap the labels or keys of enum fields present in a cds_df. Especially useful when launching custom requests and not using 'update_cds_records()'.

Usage

1
parse_cds_enums(cds_df, to = "key")

Arguments

cds_df

A cds_df tibble downloaded via 'download_cds()'.

to

A character scalar, either 'key' or 'label', defining what you want to parse into. Default is 'key'.

Value

A cds_df with all present enum columns parsed either to it's key or label, depending on the 'to' argument.


jarekkupisz/cdsR documentation built on Dec. 20, 2021, 9:05 p.m.