# Registering Apple manually
AAPL <- register.firm(name = 'Apple', id = 'AAPL', legal_form = 'GmbH',
revenues = 81665400000, capitalisation = 2755039000000,
management = my_vector <- c("Timothy D. Cook",
"Luca Maestri",
"Jeffrey E. Williams",
"Katherine L. Adams",
"Deirdre O'Brien",
"Chris Kondo",
"James Wilson",
"Mary Demby",
"Nancy Paxton",
"Greg Joswiak"),
ownership = c('Vanguard Total Stock Market Index Fund',
'Vanguard 500 Index Fund',
'Fidelity 500 Index Fund',
'SPDR S&P 500 ETF Trust',
'iShares Core S&P 500 ETF',
'Invesco ETF Tr-Invesco QQQ Tr, Series 1 ETF',
'Vanguard Growth Index Fund',
'Vanguard Institutional Index Fund-Institutional Index Fund',
'Vanguard Information Technology Index Fund',
'Select Sector SPDR Fund-Technology'),
shares = c(0.0290, 0.0218, 0.0104, 0.0102, 0.0084,
0.0082, 0.0081, 0.0066, 0.0043, 0.0039),
currency = 'USD')
# Registering a coal-mining company indicating the sector using `NACE` codes, without ID
set.seed(123456789)
firm_coalmining <- register.firm(
name = 'A coal-mining firm',
legal_form = 'Private',
sector = 'B.05',
sector_classif = 'NACE'
)
# Getting creative: Register a firm with coded owners and managers
set.seed(123456789)
firm_coded <- register.firm(
name = 'Coded firm',
revenues = sample(seq(1:100)/10, 1)*10^sample(1:5, 1),
capitalisation = sample(seq(1:100)/10, 1)*10^sample(2:7, 1),
management = c('Board Member', 'CEO', 'CTO', 'Activist investor'),
ownership = c('State', 'Foreign investors'),
shares = c(51, 49),
currency = 'EUR'
)
Run the code above in your browser using DataLab