meta_var_stata: Stata metadata

meta_var_stataR Documentation

Stata metadata

Description

meta_var_stata (column) and meta_df_stata (data frame) hold metadata read from and written to Stata files. See meta() for how to access them.

Usage

meta_var_stata(format = NULL, type = NULL)

meta_df_stata(created = NULL, modified = NULL, notes = NULL, version = NULL)

Arguments

format

The display format.

type

The storage type: "byte", "int", "long", "float", "double", or "strL".

created, modified

File creation and modification timestamps.

notes

File notes.

version

The Stata file version.

Examples

df <- read_dta(system.file("examples", "iris.dta", package = "haven"))
meta(df)
meta(df)@version
meta(df$species)
meta(df$species)@format

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