zap_formats: Remove format attributes

View source: R/zap_formats.R

zap_formatsR Documentation

Remove format attributes

Description

[Deprecated]

This function is deprecated because haven now stores formats in the haven_meta attribute (see meta()). Please use zap_meta() instead.

zap_formats() only removes the legacy format.stata, format.spss, and format.sas attributes.

Usage

zap_formats(x)

Arguments

x

A vector or data frame.

See Also

Other zappers: zap_empty(), zap_label(), zap_labels(), zap_meta(), zap_widths()

Examples

x <- structure(1:3, format.sas = "BEST12.")

# Old:
zap_formats(x)
# New:
zap_meta(x)

haven documentation built on Dec. 2, 2026, 5:08 p.m.