-
Notifications
You must be signed in to change notification settings - Fork 0
/
merge.R
32 lines (26 loc) · 890 Bytes
/
merge.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Date: May 4, 2022
# More updates to come
# set working directory to source file location
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
rm(list = ls())
# install.packages("pacman")
#source("https://raw.githubusercontent.com/hkwilliamchiu/Merge-ESG-Data/main/functions.R")
source("functions.R")
custom_list_company <- list(
Bloomberg = 0,
Refinitiv = 0,
Sustainalytics = 0,
SandP = 0,
identifier = "isin" # ISIN recommended
)
custom_list_fund <- list(
ISS = 0,
Refinitiv_fund = 0,
identifier = "isin"
)
coalesce_company <- data.frame(
company_name = c("Name","Company Name","EntityName","companyname",NA),
country = c("Country of Headquarters","Country","cntry_of_incorporation","HQ Address Country ISO","incorporation_country"),
industry = c("Sub_Industry","Subindustry","simpleindustry",NA,NA)
)
merge_data(custom_list_company, coalesce_company)