inst/doc/parsing-an-sps-or-sas-file.R

## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## -----------------------------------------------------------------------------
# Using the example .sps setup file included with the package
sps_name <- system.file("extdata", "example_setup.sps",
                          package = "asciiSetupReader")
example <- asciiSetupReader::parse_setup(sps_name)

## -----------------------------------------------------------------------------
head(example$setup)

## -----------------------------------------------------------------------------
example$value_labels[1:3]

## -----------------------------------------------------------------------------
length(example$value_labels)

## -----------------------------------------------------------------------------
head(example$missing)

Try the asciiSetupReader package in your browser

Any scripts or data that you put into this service are public.

asciiSetupReader documentation built on July 9, 2023, 5:15 p.m.