inst/doc/sss.R

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

## ----setup--------------------------------------------------------------------
library(sss)
library(dplyr, quietly = TRUE, warn.conflicts = FALSE)

## -----------------------------------------------------------------------------
dat <- read.sss("sample.sss", "sample.asc")

## -----------------------------------------------------------------------------
dat %>% 
  as_tibble()

## -----------------------------------------------------------------------------
str(dat)

## -----------------------------------------------------------------------------
attr(dat, "variable.labels")

## -----------------------------------------------------------------------------
attr(dat, "label.table")$`2`

Try the sss package in your browser

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

sss documentation built on Aug. 14, 2022, 5:05 p.m.