Description Usage Arguments Value Examples
View source: R/get_single_fin_statement.R
This is a helper function for simfinR_get_fin_statements
.
It will make calls to the simfin api and save the results in cache.
1 2 3 4 5 6 7 8 | simfinR_get_single_fin_statement(
id_sim,
type_statement,
period_in,
year,
api_key,
cache_folder
)
|
id_sim |
Simfin id of a company (single value) |
type_statement |
Type of financial statements ('pl' - profit loss, 'bs' - balance sheet, 'cf' - cashflow) |
period_in |
Time periods to grab the data: 'FY' - fiscal year (only for 'pl' and 'cf', use 'Q4' for end of year 'bs'), 'Q1' - first quarter, 'Q2', 'Q3', 'Q4' |
year |
The year |
api_key |
Your api key |
cache_folder |
The directory to cache results |
A single dataframe with the data
1 2 3 4 5 6 7 8 9 10 | ## Not run:
id_companies <- 59265
api_key <- 'YOURAPIHERE'
df_single_fin <- get_single_fin_statement(id_sim = id_companies, type_statement = 'pl',
period_in = 'FY', year = 2018, api_key=api_key,
cache_folder = 'simfim_cache')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.