createData: Import a financial statement

Description Usage Arguments Value Author(s) Examples

Description

Import a financial statement from the web (off of marketwatch.com). This function makes use of rvest and xml2. This version of the function is to be used practically; outside of the shiny app

Usage

1

Arguments

char

A string containing the formal stock ticker of a desired company

state

A numeric containing the desired financial statement of the company 1 for Income Statement, 2 for Balance sheet and 3 for statement of cash flows

Value

A list containing the following attributes:

visualizeData

A matrix containing the financial statement

variables

A vector of all of the variables contained on the financial statement

Author(s)

Ryan Voyack

Examples

1
create.data('wmt',2)[[1]] #imports Walmart's balance sheet with data from the last 5 years

ryanvoyack/financialStatementPlot documentation built on May 13, 2019, 8:38 a.m.