slim_bind: Bind a list of dataframes, but with only a subset of...

View source: R/utility.R

slim_bindR Documentation

Bind a list of dataframes, but with only a subset of variables

Description

Wrapper to map_dfr but specifies variables to use. This is useful when the underlying data is large and has lots of variables that are not necessary.

Usage

slim_bind(
  df_list,
  regex,
  default = c("elec", "county", "precinct_id", "ballot_style", "voter_id")
)

Arguments

df_list

A list of dataframes to bind.

regex

A regular expression to

default

character vector of variables (like identifiers to always keep)


kuriwaki/ballot documentation built on May 1, 2023, 9:55 p.m.