Learn R Programming

cvap (version 0.1.6)

cvap_process_file: Process Census CVAP File

Description

Process Census CVAP File

Usage

cvap_process_file(path, year, out_dir, moe = TRUE, csv = FALSE)

Value

tibble of cvap data

Arguments

path

path to csv file

year

file year

out_dir

directory to create files in

moe

Boolean. Default is TRUE. Should margin of error be kept?

csv

Boolean. Default is FALSE, which creates an rds file instead.

Examples

Run this code
path <- fs::path_package('cvap', 'extdata', 'County.csv')
cvap_process_file(path, year = 2019, out_dir = tempdir())

Run the code above in your browser using DataLab