Package Name | Author |Github Repo ---------------------|-----------------------------------------------------------------------------|------------------------ BsuPkg | Debanjali Basu | e7ec161d
The World Happiness Report is a landmark survey of the state of global happiness. The reports review the state of happiness in the world today and show how the new science of happiness explains personal and national variations in happiness.
Here, in this project I regressed the Happiness score on the Social and Economic variables available in the dataset.The purpose of the analysis is to determine the relationships between the happiness of a nation and its social and economic factors.
# Please install the R package "devtools" if not installed then use the following command:
devtools::install_github('unimi-dse/e7ec161d')
# load the package
require(BsuPkg)
get_data( ) - This function imports the happiness index data of all countries from a csv file and imports it into a dataframe.
map_happiness( ) - *This function plot the happiness analysis data and shows the happiness score in a color coded worldmap, using the package rworldmap *
call_shiny( ) - This function calls the shiny app which diplayes the following:
Note: You can call the functions individually, or you can directly run the shiny app to view the entire analysis
Name | Desc. |Linked.in ---------------------|-----------------------------------------------------------------------------|------------------------ Debanjali Basu | MSc. Data Science Student at University of Milan,Italy | Profile link
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.