find_statement: Extract Financial Statement of Interest

Description Usage Arguments Value

Description

A function for extracting the financial statement of interest from the given taxonomy.

Usage

1
find_statement(statement, taxonomy, linkbase)

Arguments

statement

Title of statement of interest as string. Incorrect or vague values will throw error. Ideally the statement argument would be in the format on http://xbrlview.fasb.org/yeti/resources/yeti-gwt/Yeti.jsp#tax~(id~161*v~5016)!net~(a~3191*l~776)!lang~(code~en-us)!rg~(rg~32*p~12) like like '124000 - Statement - Statement of Income.

taxonomy

dataframe of the taxonomy of interest

linkbase

The linkbase to choose, either Calculation or Presentation

Value

The statement of interest with each row as an element, the corresponding parent, the element label, depth, and if calculation linkbase the weight


bradwest-wk/xbrlr documentation built on May 8, 2019, 11:43 a.m.