Description Usage Arguments Value Examples
Function updates cash balance and adds record to activity and income records
1 2 |
pobj |
portfolio object |
date |
date of dividend. Date type |
symbol |
symbol ticker. character type |
quantity |
number of shares. numeric type |
dividend |
dividend per share. numeric type |
amount |
dollar amount. numeric type |
desc |
optional description of dividend. string type |
updated portfolio object
1 2 3 4 5 | library(tidyverse)
portfolio("new_port") %>%
make_deposit(amount = 2000) %>%
make_buy(symbol = "SPY", quantity = 10, price = 100) %>%
recieve_dividend(symbol = "SPY", quantity = 10, dividend = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.