dep_sample_data: Create Sample Data

View source: R/dep_sample_data.R

dep_sample_dataR Documentation

Create Sample Data

Description

Create sample data for testing the package functionality.

Usage

dep_sample_data(index)

Arguments

index

A character scalar or vector listing deprivation measures to return. These include the area deprivation index ("adi"), the gini coefficient ("gini"), two versions of the neighborhood deprivation index by Messer ("ndi_m") and Powell and Wiley ("ndi_pw"), and four versions of the social vulnerability index ("svi10", "svi14", "svi20", and "svi20s").

Value

A tibble containing the raw 2022 American Community Sruvey data for the given index. Each tibble will contain observations for the 115 counties in Missouri.

Examples

## load sample data
dep_sample_data(index = "ndi_m")


deprivateR documentation built on April 12, 2025, 1:28 a.m.