Showing posts with label R. Show all posts

Monday, November 5, 2018

Plotting functions in R

Exploratory data visualization is the main strength of R. R is more flexible and efficient compared to other data visualization tools and programming languages like D3. In this post we will see the different graphical facilities available in R.

Tuesday, October 30, 2018

R - Vector Arithmetic

So far in our earlier posts we have seen how to create vectors and various operations on vectors like sorting. In this post we will learn to do arithmetic operations on vectors and see how these are helpful for data analysis.

Friday, October 26, 2018

R - Sorting Vectors

For Data Analysis we will often have to order or sort data in increasing and decreasing orders . In this post let's see how to use sorting functions on our CO2 emission dataset.

Wednesday, October 24, 2018

R - Working with Vectors


Complex datasets are usually broken down into components that are vectors. For example, in a dataframe such as the CO2 emissions seen in the earlier post , each column is a vector.  

Tuesday, October 23, 2018

R - Data Types , Data Frames and Vectors


Variables in R can be different types and we need to distinguish numbers from character strings and tables from simple lists of numbers .To distinguish numbers from characters we always use quotes("") for characters.  The function class() helps us determine the type of an object .
 > a <- 2
>class(a)

Tuesday, October 16, 2018

R programming - Introduction and Basics


Introduction
This is my first post on R programming. In this series of posts , we will cover the building blocks of R I.e different data types used , Vectors ,Operations on these vectors like Vector Arithmetic, Sorting , indexing , plots , programming basics of R i.e using the conditional operators , for loops , functions etc. I will not be covering installation since there are various existing detailed sources available .