campfin1.0.11 package

Wrangle Campaign Finance Data

abbrev_full

Abbreviate full strings

abbrev_state

Abbreviate US state names

add_prop

Add proportions

all_files_new

Check if all files in a directory are new

campfin-package

campfin package

check_city

Check whether an input is a valid place with Google Maps API

col_date_mdy

Parse USA date columns in readr functions

col_stats

Apply a statistic function to all column vectors

count_diff

Count set difference

count_in

Count in

count_na

Count missing

count_out

Count out

expand_abbrev

Expand Abbreviations

expand_state

Expand US state names

explore_plot

Create Basic Barplots

fetch_city

Return Closest Match Result of Cities from Google Maps API

file_age

File modification date age

file_encoding

File Encoding

flag_dupes

Flag Duplicate Rows With New Column

flag_na

Flag Missing Values With New Column

flush_memory

Flush Garbage Memory

grapes-out-grapes

Inverted match

guess_delim

Guess the delimiter of a text file

invert_named

Invert a named vector

is_abbrev

Check if abbreviation

is_binary

Check if Binary

is_even

Check if even

keypad_convert

Convert letters or numbers to their keypad counterpart

most_common

Find most common values

na_in

Remove in

na_out

Remove out

na_rep

Remove repeated character elements

non_ascii

Show non-ASCII lines of file

normal_address

Normalize street addresses

normal_city

Normalize city names

normal_phone

Normalize phone number

normal_state

Normalize US State Abbreviations

normal_zip

Normalize ZIP codes

path.abbrev

Abbreviate a file path

pipe

Pipe operator

progress_table

Create a progress table

prop_distinct

Proportion missing

prop_in

Proportion in

prop_na

Proportion missing

prop_out

Proportion out

read_names

Read column names

rename_prefix

Convert data frame name suffixes to prefixes

rx_break

Form a word break regex pattern

scale_x_truncate

Truncate and wrap x-axis labels

str_dist

Calculate string distance

str_normal

Normalize a character string

this_file_new

Check if a single file is new

url_file_size

Check a URL file size

url2path

Make a File Path from a URL

use_diary

Create a new template data diary

what_in

Which in

what_out

Which out

Explore and normalize American campaign finance data. Created by the Investigative Reporting Workshop to facilitate work on The Accountability Project, an effort to collect public data into a central, standard database that is more easily searched: <https://publicaccountability.org/>.

  • Maintainer: Kiernan Nicholls
  • License: CC BY 4.0
  • Last published: 2023-10-20