Articles by gluc

YAML: Define an R function

August 18, 2016 | gluc

YAML to define hierarchic models Glenn is using the data.tree package to model commercial mortgage-backed securities. If you don’t know what that is, you can read it all up on Wikipedia. But in a nutshell, CMBS (or REMIC) are financial instruments that bundle multiple commercial real estate mortgages, ... [Read more...]

R profiling

June 5, 2016 | gluc

Profiling in R R has a built in performance and memory profiling facility: Rprof. Type [crayon-5755404797f32904591682-i/] into your console to learn more. The way the profiler works is as follows: you start the profiler by calling Rprof, providing a filename where the profiling data should be stored you ... [Read more...]

Reference semantics in R

June 1, 2016 | gluc

Question I recently got a mail from Václav on reference semantics in data.tree, reading as follows: Dear Christoph, I am rather inexperienced when it comes to environments in R and henceforth I apologize if my question is basic; however, my colleagues are no better than me to answer ... [Read more...]

Solving Math Puzzles with data.tree

May 29, 2016 | gluc

I got a note from Karim Lahrichi, who even thinks about math when he’s supposed to be drinking beer. The bar puzzle they were trying to solve goes like this: Using all of the numbers 1, 3, 4, 6 exactly once, and any combination of: addition, subtraction, multiplication and division (and parenthesis to ... [Read more...]

Password protect Shiny Apps

February 19, 2016 | gluc

In this post, we explain how you can password protect apps hosted on Shiny Open Source server. This tutorial is the fourth in our Shiny AWS series. It builds on the previous tutorials, namely: Setting up an AWS instance for R Installing Shiny Server on AWS Shiny https As with ... [Read more...]

ahp 0.2.4 on CRAN

January 18, 2016 | gluc

The latest version of the ahp package contains lots of new features and visualizations! The post ahp 0.2.4 on CRAN appeared first on ipub.
[Read more...]

Shiny https: Securing Shiny Open Source with SSL

December 23, 2015 | gluc

As described in my Shiny overview post, there are different versions of Shiny server. Among other limitations, the open source flavor does not come with built-in support for https and user access control. In this post, we explain how you can nevertheless turn your Shiny Open Source server into a ...
[Read more...]

R ahp package on github

December 21, 2015 | gluc

AHP lets you analyse complex decision making problems. We have recently released the initial version of the R ahp package on github: gluc/ahp. What is AHP? The Analytic Hierarchy Process is a decision making framework developed by Thomas Saaty. Read this entry on Wikipedia for more information. There is ...
[Read more...]

Installing RStudio Shiny Server on AWS

December 1, 2015 | gluc

In this beginner’s level tutorial, you’ll learn how to install Shiny Server on an AWS cloud instance, and how to configure the firewall. It will take just a few minutes! Why? Playing around with Shiny is simple enough: all you need is is the R package called shiny, ...
[Read more...]

TreeMap World Population visualisation

November 26, 2015 | gluc

This example is inspired by the examples of the treemap package. You’ll learn how to convert a data.frame to a data.tree structure navigate a tree and locate specific nodes use Aggregate and Cumulate manipulate an existing tree, e.g. by using the Prune method use data.tree ...
[Read more...]

Setting up an AWS instance for R, RStudio, OpenCPU, or Shiny Server

November 23, 2015 | gluc

While most web-developers have worked with Amazon AWS, Microsoft Azure, or similar platforms before, this is still not the case for many R number crunchers. Especially researchers at academic institutions have less exposure to these commercial offerings. Time to change that! In this post, we explain how to set up ...
[Read more...]

Shiny (introductory article)

October 22, 2015 | gluc

No code for once. This is an independent, introductory article about RStudio’s Shiny web application framework for R. This could be useful for people who don’t know what Shiny is. Or for those of you who want to find out when to use Shiny.  What does Shiny do? ... [Read more...]

Shiny CRUD App

September 27, 2015 | gluc

In this post, we write a shiny app that lets you display and modify data that is stored in a database table. Shiny and Databases Everybody loves Shiny, and rightly so. It lets you publish reproducible research, brings R applications to non-R users, and can even serve as a general ... [Read more...]

Solving Tic-Tac-Toe with R data.tree

September 24, 2015 | gluc

In this post, we do a brute force solution of Tic-Tac-Toe, the well-known 3*3 game. You’ll learn how data.tree can be used to build a tree of game history, and how the resulting data.tree structure can be used to analyse the game. This post is based on data.... [Read more...]

data.tree 0.2.0 “Elder” on CRAN

September 7, 2015 | gluc

Today, the latest version of the data.tree package was published to CRAN. This version has been named Elder, as in celtic symbolism the elder tree stands for transition, evolution, and continuation, at least according to this site. Transition, evolution, and continuation. Sigh, beautiful. Back to the here and now: ... [Read more...]

How to convert an R data.tree to JSON

April 18, 2015 | gluc

I have recently published the data.tree R package to CRAN. It provides OO-style tree building, with standard tree traversal methods. Read the vignette about data.tree features if you are interested, or the one explaining how to use data.tree for classification models. I’ve been asked how to ... [Read more...]

ID3 Classification using data.tree

April 17, 2015 | gluc

Introduction About this vignette What is ID3? Feature Selection Purity and Entropy Information Gain The ID3 algorithm Pseudo code Implementation in R with the data.tree package Training with data Prediction The prediction method Using the prediction method While preparing this example, I asked my nine-year-old daughter, “Anaïs, imagine ... [Read more...]

Write an R Journal article with knitr

April 11, 2015 | gluc

R Journal The R Journal publishs peer-reviewed short to medium length articles covering topics that might be of interest to users or developers of R. It is a welcome platform to spread word of new packages. As most academic journals, it has strict guidelines regarding the format of submitted articles. ... [Read more...]
1 2

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)