variable_view: SPSS Style Variable Viewer

View source: R/variable_view.R

variable_viewR Documentation

SPSS Style Variable Viewer

Description

Create a table of column names and attributes.

Usage

variable_view(df)

Arguments

df

a data frame

Value

a summary table of df

Author(s)

Sven Halvorson (svenpubmail@gmail.com)

Examples

example_df = tibble::tibble(
  Goddess = c(1, 2, 3),
  Civilization = c(
    'Babylonian',
    'Sumerian',
    'Sumerian'
  ),
  Importance = runif(3),
  Date = lubridate::mdy(
    c(
      '01-30-1988',
      '05-22-2006',
      '11-02-2017'
    )
  )
)

expss::val_lab(example_df[['Goddess']]) = c(
  'Tiamat' = 1,
  'Inanna' = 2,
  'Ninhursag' = 3
)

expss::var_lab(example_df[['Date']]) = 'A random date'

example_df %>%
  variable_view() %>%
  View()

svenhalvorson/SvenR documentation built on Aug. 25, 2023, 1:31 p.m.