The World of Tomorrow
We are surrounded by data and tools that collects it. Every time you perform a web search on bing or use Google map to find a location; you are generating data. Those able to analyze data and extract knowledge that enables informed decision-making will be at a advantage. It is reminiscent of when software usage and basic computer skills went from a “convenience” to an “mandatory.”
Before we start changing the world with Data analysis/Data Science; first things first, lets get a basic tool for analyzing data up and running. Let’s pretend Microsoft Excel never came your mind. R language is the tool I will focus on in this blog. It is both a programming language and platform for data science.
Install on non-Linux Platforms
This blog will focus only on Linux and the command line installation (I am a Microsoft guy fighting hard to get away from GUI-addiction.) If you like an alternative means, check out this URL, select a country in it and follow the instructions:
For example, for United States, an image from Berkeley, select: https://cran.cnr.berkeley.edu.
Installation on Ubuntu
- Open a command line
- Run command to update Linux (optional but recommended):
sudo apt-get update
- Run command to install R Language:
sudo apt-get install r-base
Running R Language
In command line, run this (its case sensitive):
Hello, World test
Here is a Hello, world test:
- To save a variable with a value, type:
x <- "Hello, world"
- To print out the saved variable’s value, type:
To Close R Language Command Prompt
In command line, run this command (ts case sensitive):
Installing R Studio
The command line version is suitable for basic R language operations. However, for more real-world analysis, it would be better to use an IDE like R Studio
To begin installing R Studio, go to:
Search for the word “Ubuntu” on the page above and make sure you select the appropriate version that matches the bit (32 or 64) of your machine. Clicking on this will download a file for installation. Double click on the downloaded file and the Ubuntu Software Center will come up (if not, bring it up.) Follow the instructions.
You should be ready to use it, if you followed the steps in the blog loyally. Have fun.