firm
(legal person) using data from 'Yahoo! Finance'Tickers can be retrieved from [Yahoo! Finance](https://finance.yahoo.com/lookup/).
This function requires the package yahoofinancer
to be installed. It is available from the CRAN by running install.packages('yahoofinancer')
.
find.firm(
ticker,
name = NULL,
ticker_is_id = TRUE,
legal_form = NULL,
sector_granularity = 1,
managers_remove_salutation_title = TRUE,
managers_only_surname = FALSE
)
An object of the S4 class firm
containing several fields, only the first one of which is mandatory:
Name of the firm (or ticker if no name was provided)
Firm' ticker (if ticker_is_id was `TRUE`) or nothing (otherwise)
Legal form of the firm (may be null)
Sector in which the firm operates (may be null)
Yearly revenues
Capitalisation
Members of the board
Owner(s)
Share owned by (each of) the owner(s)
Currency
Firm's ticker.
Provide the firm's name. If not provided, NA
, or NULL
, will default to the string provided as ticker
.
Should the ticker be used as the firm's id?
The firm's legal form of the firm. Possible values:
- a string (e.g., 'LLC', 'Private', 'GmbH', etc.);
- NULL
(default), in which case the function will set legal_form
to 'JSC'; or
- NA
to specify no legal form.
Sector in which the firm operates. Possible values:
- 0
, NULL
, or NA
to omit the sector;
- 1
or 'generic'
(default) for a generic description (e.g., 'Consumer Technology', 'Consumer Cyclical', 'Consumer Defensive');
- 2
or 'specifc'
for a more granular description (e.g., 'Technology', 'Auto Manufacturers', 'Tobacco').
Yahoo! Finance provide salutation titles before the names of the managers. If this is TRUE
(default), they will be omitted.
Yahoo! Finance provide first, middle, and last name of the managers. If this is TRUE
(not recommended for large data sets), only the surname is returned.
Telarico, Fabio Ashtar
register.firm find.firms
# Registering Apple automatically
#| Results are subject to the correct functioning of the package `yahoofinancer`
#| and of the Yahoo! Finance API
Run the code above in your browser using DataLab