Description Usage Arguments Value Examples
Function updates cash balance and adds record to activity and income records
1 | recieve_interest(pobj, date = Sys.Date(), amount, desc = "")
|
pobj |
portfolio object |
date |
date of interest payment. Date type |
amount |
dollar amount of interest payment. numeric type |
desc |
optional description of interest. 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_interest(amount = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.