meta_var_spss: SPSS metadata

meta_var_spssR Documentation

SPSS metadata

Description

meta_var_spss (column) and meta_df_spss (data frame) hold metadata read from and written to SPSS files. See meta() for how to access them.

Usage

meta_var_spss(
  format = NULL,
  display_width = NULL,
  width = NULL,
  measure = NULL,
  alignment = NULL
)

meta_df_spss(created = NULL, modified = NULL, notes = NULL, mr_sets = NULL)

Arguments

format

The display format.

display_width

The display width.

width

The variable width.

measure

The measure level: "nominal", "ordinal", or "scale".

alignment

The display alignment: "left", "right", or "center".

created, modified

File creation and modification timestamps.

notes

File notes.

mr_sets

Multiple response sets.

Examples

df <- read_sav(system.file("examples", "iris.sav", package = "haven"))
meta(df)
meta(df)@created
meta(df$Species)
meta(df$Species)@measure

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