Learn R Programming

deprivateR (version 0.1.0)

dep_sample_data: Create Sample Data

Description

Create sample data for testing the package functionality.

Usage

dep_sample_data(index)

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.

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").

Examples

Run this code
## load sample data
dep_sample_data(index = "ndi_m")

Run the code above in your browser using DataLab