inst/doc/childfree.R

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

## ----setup--------------------------------------------------------------------
library(childfree)

## ----results='hide'-----------------------------------------------------------
dat <- dhs(file = "ZZIR62FL.SAV", extra.vars = c("v201", "v602", "v613"))

## -----------------------------------------------------------------------------
if (!is.null(dat)) {t(dat[2368,c(3:9,19:21)])}

## -----------------------------------------------------------------------------
dat <- nsfg(years = 2017)

## -----------------------------------------------------------------------------
if (!is.null(dat)) {t(dat[14,2:12])}

## -----------------------------------------------------------------------------
dat <- soss(waves = 84, extra.vars = (c("neal1", "neal2", "neal3")))

## -----------------------------------------------------------------------------
if (!is.null(dat)) {t(dat[2,c(2:9,12:13,21:24)])}

Try the childfree package in your browser

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

childfree documentation built on April 3, 2025, 6:15 p.m.