Title: | Colombian Index Tool Market Rate Exchange |
---|---|
Description: | Downloads the Representative Market Rate Exchange (RMRE) from the <www.datos.gov.co> source. Allows setting the data series in time frequencies, splitting the time series through start and end functions, transforming the data set in log returns or levels, and making a Dynamic graph. |
Authors: | Sergio Sierra-Luján [aut, cph]
|
Maintainer: | David Rodríguez <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0.9000 |
Built: | 2025-02-14 04:57:55 UTC |
Source: | https://github.com/davrodecon/citmre |
Download the colombian RMRE source: Portal de Datos Abiertos <www.datos.gov.co>
rmre_data( start_date = NULL, end_date = NULL, log_return = FALSE, plot_data = FALSE, frequency = 365, type = "last_date" )
rmre_data( start_date = NULL, end_date = NULL, log_return = FALSE, plot_data = FALSE, frequency = 365, type = "last_date" )
start_date |
An initial date in the "YYYY-MM-DD" type; by default, the series starts on the first date of the resource |
end_date |
A final date in the "YYYY-MM-DD" form; by default, it shows the updated last date on the resource. |
log_return |
Show the log return of the RMRE (Representative Market Rate Exchange) dataset; if it is TRUE, show the log return dataset; if it is FALSE, show the level dataset; in default, show the level dataset |
plot_data |
Show a Plotly linear graph data set; by default, the argument is false, and the graph is built in the Viewer option. You can use the basic plot if the user does not use the plot_data option. |
frequency |
Show frequencies for the data set in daily (365), month (12), quarter (4), and half-year (2); in default, the dataset is the daily frequency. |
type |
It works only with 12,4,2 frequencies, showing the dataset using the last date ("last_date") or doing a mean ("mean") in the frequency series. By default, the type is "last_date". |
dataset in xts and zoo type
# Show full series dataset rmre_serie <- rmre_data() # Show monthly dataset with Plotly Graph rmre_splited <- rmre_data(frequency = 12, log_return = F, plot_data = T) # Show quaterly log_return dataset with Plotly Graph rmre_splited <- rmre_data(frequency = 4, log_return = T, plot_data = T, type = "mean") # Show splited log return dataset rmre_splited <- rmre_data("2000-01-01", "2023-12-31", log_return = TRUE)
# Show full series dataset rmre_serie <- rmre_data() # Show monthly dataset with Plotly Graph rmre_splited <- rmre_data(frequency = 12, log_return = F, plot_data = T) # Show quaterly log_return dataset with Plotly Graph rmre_splited <- rmre_data(frequency = 4, log_return = T, plot_data = T, type = "mean") # Show splited log return dataset rmre_splited <- rmre_data("2000-01-01", "2023-12-31", log_return = TRUE)