OVERVIEW

This document is a specification document.

GOALS

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.

  1. Create adveq map package adveqmap(choose better busniess . This package is the business layer. Contains all data and computations financial functions and objects.
  2. Create a shiny application: adveqmapshiny this the package viewer. Internally the shiny app uses adveqmap package.

Note that we isolate the busniess layer from view layer, this will :

SPECIFICATIONS

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:

MILESTONES

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.

M1 : adveqmap package

1. Init the package

2. Load data

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

3. Clean data

db <- clean_data(db)

4. Compute investment multiple

Compute busniess variable that will be used to color the map.

db <- invest_multiple(db)

5. Create the map

This the main function of the package. Create a colorplate map.

map <- get_map(db)

M2 shiny application

1. Init the shiny application

2. Integrate the map to the application

Essentially here we call adveqmap functions. Either to show data or map.

3. Add app options

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.

4. App deployment



agstudy/tempo_repo documentation built on May 11, 2019, 11:23 p.m.