return_statement_position: Find statements positions

View source: R/return_statement_position.R

return_statement_positionR Documentation

Find statements positions

Description

Identify the table which is the most likely to be the desired financial statement.

Usage

return_statement_position(
  tables,
  patterns,
  remove = NA,
  minscore = 3,
  window = 2
)

Arguments

tables

List. all tables from a 10-K annual report.

patterns

List of character vectors. Patterns identifying the statements.

remove

Numeric vector. Position of the tables to be removed.

minscore

Integer. Minimum number of pattern occurrences to keep a table as a candidate for a statement.

window

Integer. To keep candidates having the best scores or scores near the best scores.

Value

Numeric vector of positions

Author(s)

Nicolas Mangin


NicolasJBM/collectR documentation built on June 9, 2025, 11:49 a.m.