This document is a specification document.
Within R and shiny framework , create a shiny application to display adveq global investments multiple and FMV on a global map per country or region.
adveqmap
(choose better busniess . This package is the business layer.
Contains all data and computations financial functions and objects.adveqmapshiny
this the package viewer. Internally the shiny app uses adveqmap
package. Note that we isolate the busniess layer from view layer, this will :
Adveq investment will be displayed in the map according to the Investment multiple. The latter can be defined as for each geography $g$
$$ I^g_{multiple} = \frac{V_T^g}{C_T^g} $$ Where:
We try here to give the details of future development. Development is divided in different milestone. Each milestone contains a set of R function/tasks to do. The list is not exhaustive or definitive.
adveqmap
packagetestthat
) roxygen
)Data can be loaded from an Excel workbook:
db <- load_data(path,table,conn=NULL)
We can imagine that the data will be loaded later directly from a data base.
For example from an SQL server
data base
library(rsqlserver) conn <- dbConnect() db <- load_data(table,conn=conn)
the result db
is a data.table
db <- clean_data(db)
Compute busniess variable that will be used to color the map.
db <- invest_multiple(db)
This the main function of the package. Create a colorplate map.
map <- get_map(db)
shiny
applicationEssentially here we call adveqmap
functions. Either to show data or map.
Some function here can be moved to adveqmap
package once they are stable.
The idea is to keep the shiny application as light as possible and with the minimum of business logic.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.