add_alliance: Add column variants, including summaries, and deflated...

View source: R/Apply_Lookups.R

add_allianceR Documentation

Add column variants, including summaries, and deflated dollars, to a contract dataset.

Description

Add column variants, including summaries, and deflated dollars, to a contract dataset.

Usage

add_alliance(
  df,
  isoAlpha3_col = "ISOalpha3",
  drop_col = FALSE,
  prefix = NULL,
  purge_unprefixed = FALSE,
  skip_name = FALSE,
  path = "https://raw.githubusercontent.com/CSISdefense/Lookup-Tables/master/"
)

Arguments

df

A data frame.

path

The path or url for the column key. By default, checks the CSISdefense Github lookups repository at CSISdefense/Lookup/master/

isoAlpha3_col="ISOalpha3"

The column with country codes in 3 letter ISO format

drop_col=FALSE

If true drop many of the supporting columns, by default FALSE.

prefix=NULL

If provided, add to the start of all the added variables (e.g. Place, Vendor, Origin). Default NULL.

purge_unprefixed=FALSE

If TRUE, drop all columns previously added by this function that lack a prefix. Used to avoid adding the same columns repeatedly.

skip_name=FALSE

If true, do not add the country name field

Details

Add column variants, including summaries, and deflated dollars, to a contract dataset.

Value

The fiscal year of the date.


CSISdefense/csis360 documentation built on May 19, 2024, 8:43 p.m.