Learn R Programming

lares (version 4.4)

stocks_hist_fix: Fix Historical Data on Stocks

Description

This function lets the user fix downloaded stock data into a usefull format output

Usage

stocks_hist_fix(dailys, dividends, transactions, expenses = 7)

Arguments

dailys

Dataframe. Daily values. Structure: "Date", "Symbol", "Open", "High", "Low", "Close", "Volume", "Adjusted"

dividends

Dataframe. Dividends. Structure: "Symbol", "Date", "Div", "DivReal"

transactions

Dataframe. Transactions. Structure: "ID", "Inv", "CODE", "Symbol", "Date", "Quant", "Value", "Amount", "Description"

expenses

Numeric. How much does that bank or broker charges per transaction? Absolute value.