02/02/2016
by Marlon Ribunal
2 Comments

How to Install Microsoft R Server for Windows

Microsoft R Server, or Revolution R Enterprise (RRE) as it is formally known, for now, is basically a platform for advanced analytics designed to tackle big data statistics, predictive modeling, and machine-learning capabilities.

The open source R is limited in capacity as it is “single threaded and memory bound.” Microsoft R Server comes in handy if you need to scale and speed up your R applications by distributing massive data and computation on hundreds of nodes.

The architecture of Microsoft R Server includes the following underlying technologies which make it capable of handling a massive amount of data and advanced analytics: ScaleR, DistributedR, and ConnectR. Read more about its capabilities and architecture here.

Microsoft R Srver and SQL Server 2016 R Services Architecture

 

The Microsoft R Server capabilities will also be available in SQL Server 2016 through R Services.

It is available in the following flavors (source):

  • Hadoop—Scale your analysis transparently by distributing work across nodes without complex programming
  • Teradata database—Run advanced analytics in-database for seamless data analysis
  • SUSE Linux—Enable advanced analytics while making the most of your open-source investments
  • Red Hat—Bring predictive and prescriptive analytics power to your Red Hat environments
  • Windows—R Server for Windows will ship as R Services in SQL Server 2016 currently available as a Community Technology Preview (CTP)

The  Microsoft R Server Developer Edition is available for download on MSDN. Here’s how to install it.

Microsoft R Server Installation Prerequisite

Download and install Microsoft R Open (MRO)  which is an “enhanced distribution of R from Microsoft.” The R engine version as of this writing is 3.2.2 released on January 1, 2016. Here’s the download site: https://mran.revolutionanalytics.com/download/mro-for-mrs/

Run the executable and follow the wizard:

R Server Prerequisite

You might have noticed the Important! flag in the Microsoft R Open download page that says “If you choose not to write to the registry keys during the installation of MRO for RRE, then you may be missing some functionality.”

So make sure to tick the checkbox on the last page of the installation wizard:

Microsoft R Open Registry Entries

Complete the installation. This R distribution from Microsoft comes with a GUI called, intuitively, Rgui. You might be more familiar with the popular RStudio. Other popular R gui’s are Deducer and R Commander.

Rgui for Microsoft R Open

Microsoft R Server / Revolution R Enterprise Installation

Execute the installation file Revolution-R-Enterprise-8.0.0-Windows.exe. As of this writing, this version/build is the Revolution Enterprise 8.0.0 (build 310). The installer will check for prerequisites on your machine.

Revolution R Enterprise Prerequisite check

I’m installing this on a fresh install of Windows Server 2012 R2 (VM on Hyper-V). You might have different items in the prerequisite list. Please take note, though, that the wizard cannot install the .Net Framework 3.5 SP1. Add this feature through the Server Manager.

Once all the prerequisites are installed successfully, the Revolution R Enterprise 8.0.0 Setup Wizard starts. Click next:

Revolution R Enterprise 8.0.0

Accept the license agreement. You will, then, be given the option to load the Recursive Partitioning and Regression Trees (rpart) and Trellis Graphics for R (lattice) packages by default. I’d click yes, and move on.

rpart and lattice R Packages

At the end of the installation wizard, click Finish to complete the installation:

Revolution R Enterprise installation complete

Microsoft R Server GUI

Here’s the splash screen and the GUI:

Microsoft R Server Splash Screen

Microsoft R Server GUI

 

08/27/2015
by Marlon Ribunal
3 Comments

Getting Started With Power BI Desktop: Simple Visualization

This is the third installment of our Getting Started With Power BI Desktop series. The first post is about installation and the second is about getting data. In this post, let’s see how easy it is to create visualization on Power BI Desktop. If you’re quite familiar with creating graphs in Excel, you already got what it takes to start using this powerful visualization tool.

Fire up the Power BI Desktop app. When the splash screen pops up, select the report file (.pbix file) that we saved from the previous post (Consumer_Complaint_US.pbix).

power bi desktop splash screen

You can also open this file by going to the File tab (ribbon) and select the Open an existing report option.

On the left side of the report designer are the Visualizations and Fields panes. Most of the simple visualization tasks are accomplished by drag-and-dropping the components and elements from these panes.

Power BI Desktop Visualization Pane

Let’s create a simple graph for a start.

Select (click) the Bar Chart from the Visualizations pane.

Power BI Desktop Bar Graph

An empty graph then appears on the designer.

Power BI Desktop empty bar graph

Drag-and-drop the State field on the Axis and Issues on the Value.

Axis and Value of the Bar Graph in Power BI Desktop

And, just like that, your first visualization on Power BI Desktop is complete.

Simple Bar Graph in Power BI Desktop

Let’s do some formatting . Click the Brush icon in the visualization pane.

Format Bar Graph in Power BI Desktop

Let’s set some properties to change the appearance of our bar graph. Change whatever you want.

formatting visualization in Power BI Desktop

And here it is…a simple visualization created in Power BI Desktop.

Power BI Desktop Bar Graph

We’ll dig more visualization techniques in the next installments of this Getting Started With Power BI Desktop series.

08/19/2015
by Marlon Ribunal
4 Comments

Getting Started With Power BI Desktop: Getting Data

Now that the Power BI Desktop is installed, let’s get some data. As of this writing, Power BI can get data from 37 different data sources and data connections – File (Excel, CSV, XML, Text), Database (SQL Server, Oracle, IBM DB2, MySQL, PostgreSQL, Terada, etc.), Azure (SQL Database, Azure Marketplace, etc.) and other data connections (Web, OData Feed, Hadoop File, Dynamic CRM Online, Salesforce Objects/Reports, Facebook, etc.).

Let’s work with a CSV file.

Go to Data.gov and download the Customer Complaint Database. Choose the CSV file. Here’s the link: http://catalog.data.gov/dataset/consumer-complaint-database

Data Gov Customer Complaint Database

Save the file where it’s convenient to access it. Let’s fire up the Power BI Desktop app. On the Home tab (ribbon), click Get Data then select CSV.

Get Data From Home Ribbon

The Load dialog displays a preview of the CSV data.

Power BI Load Data Dialog

As you can see from the dialog, aside from the Load option, you can also Edit the data. To simplify this demo, let’s delete some columns (Complaint ID, Submitted via, Company Response, Timely Response?, and Consumer Disputed). Select Choose Columns from the Home ribbon. Un-check the columns that we want to exclude from our data.

Edit Data source in Power BI Desktop

Click OK. Now, were ready to load the data. Click Close & Load from the Home ribbon. Select Close & Load.

Load Data Power BI Desktop

After the data load is finished, the Power BI Desktop brings us to the report designer. You can always go back to the data by clicking the table icon Power BI Desktop Show Data Icon on the left-hand panel.

On the next post, we’ll create our first report.