The financeSMM package uses the quantmod package to download data from google and manipulate it. This package provides a number of tools that can be used to analyze the returns of different stocks including:
devtools::install_github("SmarshMELLOW/financeSMM")
This package is in the testing phase, so if you encounter a bug, please e-mail me your code and I will work on a patch.
Analyze returns from an artificial portfolio using different weights with an ETF
ITA.desc <- read_ishares( ishares.url, "ITA", save_dir = paste0( proj.dir, "data/") )
ITA.list <- ITA.desc %>%
filter( asset_class == "Equity" ) %>% # need to exclude cash!
mutate( tic.list = paste0(exchange, ":", tic) ) %>%
select( tic.list ) %>% as.matrix( ) %>% t() %>% as.vector()
ITA.df <- get_close( ITA.list )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.