Package: campfin 1.0.11

Kiernan Nicholls

campfin: Wrangle Campaign Finance Data

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/>.

Authors:Kiernan Nicholls [aut, cre, cph], Investigative Reporting Workshop [cph], Yanqi Xu [aut], Schuyler Erle [cph]

campfin_1.0.11.tar.gz
campfin_1.0.11.zip(r-4.5)campfin_1.0.11.zip(r-4.4)campfin_1.0.11.zip(r-4.3)
campfin_1.0.11.tgz(r-4.4-any)campfin_1.0.11.tgz(r-4.3-any)
campfin_1.0.11.tar.gz(r-4.5-noble)campfin_1.0.11.tar.gz(r-4.4-noble)
campfin_1.0.11.tgz(r-4.4-emscripten)campfin_1.0.11.tgz(r-4.3-emscripten)
campfin.pdf |campfin.html
campfin/json (API)
NEWS

# Install 'campfin' in R:
install.packages('campfin', repos = c('https://irworkshop.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/irworkshop/campfin/issues

Datasets:

On CRAN:

campaign-financedata-journalism

5.66 score 17 stars 54 scripts 369 downloads 59 exports 56 dependencies

Last updated 1 years agofrom:a146c16a21. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 10 2024
R-4.5-winOKNov 10 2024
R-4.5-linuxOKNov 10 2024
R-4.4-winOKNov 10 2024
R-4.4-macOKNov 10 2024
R-4.3-winOKNov 10 2024
R-4.3-macOKNov 10 2024

Exports:%>%%out%abbrev_fullabbrev_stateadd_propall_files_newcheck_citycol_date_mdycol_date_usacol_statscount_diffcount_incount_nacount_outexpand_abbrevexpand_stateexplore_plotfetch_cityfile_agefile_encodingflag_dupesflag_naflush_memoryglimpse_funguess_deliminvert_namedis_abbrevis_binaryis_evenkeypad_convertmost_commonna_inna_outna_repnon_asciinormal_addressnormal_citynormal_phonenormal_statenormal_zippath.abbrevprogress_tableprop_distinctprop_inprop_naprop_outread_namesrename_prefixrx_breakscale_x_truncatescale_x_wrapstr_diststr_normalthis_file_newurl_file_sizeurl2pathuse_diarywhat_inwhat_out

Dependencies:askpassbitbit64clicliprcolorspacecpp11crayoncurldplyrfansifarverfsgenericsggplot2gluegtablehmshttrisobandjsonlitelabelinglatticelifecyclelubridatemagrittrMASSMatrixmgcvmimemunsellnlmeopensslpillarpkgconfigprettyunitsprogresspurrrR6RColorBrewerreadrrlangscalesstringdiststringistringrsystibbletidyselecttimechangetzdbutf8vctrsviridisLitevroomwithr

Normalize Geographic Variables

Rendered fromnormalize-geography.Rmdusingknitr::rmarkdownon Nov 10 2024.

Last update: 2023-10-10
Started: 2020-03-23

Readme and manuals

Help Manual

Help pageTopics
Inverted match%out%
Abbreviate full stringsabbrev_full
Abbreviate US state namesabbrev_state
Add proportionsadd_prop
Check if all files in a directory are newall_files_new
Check whether an input is a valid place with Google Maps APIcheck_city
Parse USA date columns in readr functionscol_date_mdy col_date_usa
Apply a statistic function to all column vectorscol_stats glimpse_fun
Count set differencecount_diff
Count incount_in
Count missingcount_na
Count outcount_out
Dark Color Palettedark2
Expand Abbreviationsexpand_abbrev
Expand US state namesexpand_state
Create Basic Barplotsexplore_plot
Additional US City Namesextra_city
Return Closest Match Result of Cities from Google Maps APIfetch_city
File modification date agefile_age
File Encodingfile_encoding
Flag Duplicate Rows With New Columnflag_dupes
Flag Missing Values With New Columnflag_na
Flush Garbage Memoryflush_memory
Guess the delimiter of a text fileguess_delim
Invalid City Namesinvalid_city
Invert a named vectorinvert_named
Check if abbreviationis_abbrev
Check if Binaryis_binary
Check if evenis_even
Convert letters or numbers to their keypad counterpartkeypad_convert
Find most common valuesmost_common
Remove inna_in
Remove outna_out
Remove repeated character elementsna_rep
Show non-ASCII lines of filenon_ascii
Normalize street addressesnormal_address
Normalize city namesnormal_city
Normalize phone numbernormal_phone
Normalize US State Abbreviationsnormal_state
Normalize ZIP codesnormal_zip
Abbreviate a file pathpath.abbrev
Create a progress tableprogress_table
Proportion missingprop_distinct
Proportion inprop_in
Proportion missingprop_na
Proportion outprop_out
Read column namesread_names
Convert data frame name suffixes to prefixesrename_prefix
Form a word break regex patternrx_break
Phone number regexrx_phone
State regexrx_state
URL regexrx_url
ZIP code regexrx_zip
Truncate and wrap x-axis labelsscale_x_truncate scale_x_wrap
Calculate string distancestr_dist
Normalize a character stringstr_normal
Check if a single file is newthis_file_new
Check a URL file sizeurl_file_size
Make a File Path from a URLurl2path
Create a new template data diaryuse_diary
USPS City Abbreviationsusps_city
USPS State Abbreviationsusps_state
USPS Street Abbreviationsusps_street
US State Abbreviationsvalid_abb
US City Namesvalid_city
US State Namesvalid_name
US State Abbreviationsvalid_state
Almost all of the valid USA ZIP Codesvalid_zip
Which inwhat_in
Which outwhat_out
US City, state, and ZIPzipcodes