format_get: Retrieve a Format from the Library

View source: R/utilities.R

format_getR Documentation

Retrieve a Format from the Library

Description

Returns a format or invalue object by name. Used when you need the object (e.g. for fput_df or fexport) rather than applying by name with fput, fputn, or fputc.

Usage

format_get(name)

Arguments

name

Character. Name of a registered format or invalue.

Value

A ks_format or ks_invalue object.

Examples

fnew("M" = "Male", "F" = "Female", name = "sex")
sex_fmt <- format_get("sex")
fput_df(data.frame(sex = c("M", "F")), sex = sex_fmt)
fclear()

ksformat documentation built on May 21, 2026, 9:07 a.m.