View source: R/Apply_Lookups.R
add_alliance | R Documentation |
Add column variants, including summaries, and deflated dollars, to a contract dataset.
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/"
)
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 |
Add column variants, including summaries, and deflated dollars, to a contract dataset.
The fiscal year of the date.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.