Description Usage Arguments Details Value Examples
View source: R/composiciones.R
Construct a mysql query for the selected dates it to the sql database 'carteramodelo'
1 | get_carteramodelo(fecha)
|
fecha |
A vector of dates that can be of class character or Date but is expected to be in the format aaaa-mm-dd |
This function will return a data.frame with cartera modelo (strategy objetive composition) information from one or several dates
A data.frame with the cartera modelo (composition) of the given contratos in the selected dates.
1 2 3 4 5 6 7 | fecha <- seq(as.Date("2015-12-31"), as.Date("2016-01-31"), by = 1)
get_carteramodelo(fecha)
get_carteramodelo(fecha) %>%
filter(grupo == "CG-CM-TESTIGO-RV-LOCAL") %>%
select(fecha, id, participacion) %>%
tidyr::spread(id, participacion) %>%
head()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.