Learn R Programming

eiCompare (version 3.0.4)

empty_ei_df: Create a dataframe with NA values for racial and candidate counts.

Description

Create a dataframe with NA values for racial and candidate counts.

Usage

empty_ei_df(ncand = 2, nrace = 2, nrow = 2)

Value

A dataframe with columns for each candidate and race, all with NAs

Arguments

ncand

The number of candidates to include

nrace

The number of race/ethnicitiesto include

nrow

The number of rows for the dataframe