meta_var_sas: SAS metadata

meta_var_sasR Documentation

SAS metadata

Description

meta_var_sas (column) and meta_df_sas (data frame) hold metadata read from and written to SAS files. See meta() for how to access them.

Usage

meta_var_sas(format = NULL, informat = NULL, width = NULL)

meta_df_sas(
  created = NULL,
  modified = NULL,
  table_name = NULL,
  xpt_version = NULL
)

Arguments

format

The display format (e.g. "DATE9.").

informat

The input format.

width

The variable width.

created, modified

File creation and modification timestamps.

table_name

The SAS table name.

xpt_version

The transport file version (5 or 8).

Examples

df <- read_sas(system.file("examples", "iris.sas7bdat", package = "haven"))
meta(df)
meta(df)@table_name
meta(df$Species)
meta(df$Species)@format

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