WIOD data sets package

The wiod package is now available on CRAN. The package contains the complete WIOD data sets, in a format compatible with the decompr and gvc package. Installation The package can be installed using: {% highlight r %} install.packages(‘wiod’) # case sensitive! {% endhighlight %} Usage Following installation, the package can be loaded using: {% highlight r %} library(wiod) {% endhighlight %} Data can be loaded using the the data() function, using wiod followed by the last two digits of the required year, as the argument, e.g.

introducing diagonals

A new R package diagonals is now available on CRAN. The package implements several tools for dealing with fat diagonals on matrices, such as this one: {% highlight text %} [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 1 1 1 1 0 0 0 0 0 0 0 0 [2,] 1 1 1 1 0 0 0 0 0 0 0 0 [3,] 1 1 1 1 0 0 0 0 0 0 0 0 [4,] 1 1 1 1 0 0 0 0 0 0 0 0 [5,] 0 0 0 0 1 1 1 1 0 0 0 0 [6,] 0 0 0 0 1 1 1 1 0 0 0 0 [7,] 0 0 0 0 1 1 1 1 0 0 0 0 [8,] 0 0 0 0 1 1 1 1 0 0 0 0 [9,] 0 0 0 0 0 0 0 0 1 1 1 1 [10,] 0 0 0 0 0 0 0 0 1 1 1 1 [11,] 0 0 0 0 0 0 0 0 1 1 1 1 [12,] 0 0 0 0 0 0 0 0 1 1 1 1 {% endhighlight %}

plot.ly

Quick experiment on embedding plot.ly graphics. {% highlight r %} library(ggplot2) library(plotly) {% endhighlight %} Basic plotly {% highlight r %} plot_ly(iris, x = Petal.Length, y = Petal.Width, color = Species, mode = “markers”) {% endhighlight %} {% highlight text %} Error in html_screenshot(x): Please install the webshot package (if not on CRAN, try devtools::install_github(“wch/webshot”)) {% endhighlight %} Now using ggplot2 {% highlight r %} ggiris <- qplot(Petal.Width, Sepal.Length, data = iris, color = Species) ggplotly(ggiris) {% endhighlight %}

© Some rights reserved.

Using the Chirpy theme for Hugo.