R Vs Python

This is the Most Trending debut of Aspiring data scientists Here we will try to understand the differences between both programming Language In the battle of data science tools, python and R both have their pros and cons. Selecting one over the other will depend on the use-cases, the cost of learning, and other common …

R Vs Python Read More »

Real Time scenario

The World Bank requires scatterplot depicting Life Expectancy (y-axis) and Fertility Rate (x-axis) statistics by Country. The scatterplot needs to also be categorized by Countries’ Regions. we have been supplied with data for 2 years: 1960 and 2013 and we are required to produce a visualization for each of these years. Some data has been …

Real Time scenario Read More »

Working with Basic Operations and Filtering Dataframes

We will be using the same  dataset used in my previous post (https://sritechstudio.com/demographic-analysis-using-dataframes/) Now let us work on some basic and essential operations in Dataframe Subsetting : Subsetting in R is a useful indexing feature for accessing object elements. It can be used to select and filter variables and observations. You can use brackets to …

Working with Basic Operations and Filtering Dataframes Read More »

Dataframes in R Language

A data frame is a table or a two-dimensional array-like structure in which each column contains values of one variable and each row contains one set of values from each column. Following are the characteristics of a data frame. The column names should be non-empty. The row names should be unique. The data stored in …

Dataframes in R Language Read More »

Subsetting in R:

Subsetting in R is a useful indexing feature for accessing object elements. It can be used to select and filter variables and observations. You can use brackets to select rows and columns from your dataframe. subset () function in R Language is used to create subsets of a Data frame. This can also be used …

Subsetting in R: Read More »

Visualization with Matplot ():

Matplot Function is useful for quickly plotting multiple sets of observations from the same object, particularly from a matrix, on the same graph. It Plots the columns of one matrix against the columns of another (which often is just a vector treated as 1-column matrix). Syntax: Matplot (x, y, type = “p”, lty = 1:5, …

Visualization with Matplot (): Read More »

Creating our First Matrix

If you are confused to use any Functions or operations in R , Just type question Mark and function name , You will get the documentation of the function in Help pane. Creating First matrix : Here we are creating our first Matrix : Variable my_data is created and iam trying to print 1 to …

Creating our First Matrix Read More »

Matrix in R Language

Matrix is a rectangular arrangement of numbers in rows and columns. In a matrix, as we know rows are the ones that run horizontally, and columns are the ones that run vertically. In R programming, matrices are two-dimensional, homogeneous data structures. These are some examples of matrices: To create a matrix in R you need to …

Matrix in R Language Read More »

Create Vector in R Language

As we discussed about Vectors in my Previous Post, if not referred please find the below link to explore. Vectors are the most basic R data objects and there are six types of atomic vectors. They are logical, integer, double, complex, character and raw. Lets Take some quick examples to Create Vector : Single Vector …

Create Vector in R Language Read More »