Tag Archives: R for Business Analytics

R tutorials for Business Analyst – Correlation in R: Pearson and Spearman

(R Tutorials for Business Analyst) In this end-to-end example, you will know how we can calculate correlation in R, especially Pearson and Spearman correlation coefficient. Correlation in R: Pearson & Spearman with Matrix Example A bivariate relationship describes a relationship -or correlation- between two variables, and . In this tutorial, we discuss the concept of correlation and …

R tutorials for Business Analyst – R Exporting Data to Excel, CSV, SAS, STATA, Text File

(R Tutorials for Business Analyst) In this end-to-end example, you will know how we can export a dataset to excel, csv, SAS, STATA and TEXT file in R. It is important to know this exporting process because we can upload or import these formatted file to their respective software to do further processing as well …

R tutorials for Business Analyst – How to Replace Missing Values(NA) in R

(R Tutorials for Business Analyst) In this end-to-end example, you will find how we can replace missing values i.e. NA in R. NA can be appeared in the dataset when there is no particular value recorded for that particular field. It is important to replace such NA values in the dataset before starting any analysis. …

R tutorials for Business Analyst – Import Data into R: Read CSV, Excel, SPSS, Stata, SAS Files

(R Tutorials for Business Analyst) Import Data into R: Read CSV, Excel, SPSS, Stata, SAS Files Data could exist in various formats. For each format R has a specific function and argument. This tutorial explains how to import data to R. In this tutorial, you will learn Read CSV Read Excel files readxl_example() read_excel() excel_sheets() …

R tutorials for Business Analyst – R apply(), lapply(), sapply(), tapply() Function with Examples

(R Tutorials for Business Analyst)   R apply(), lapply(), sapply(), tapply() Function with Examples This tutorial aims at introducing the apply() function collection. The apply() function is the most basic of all collection. We will also learn sapply(), lapply() and tapply(). The apply collection can be viewed as a substitute to the loop. The apply() …

R tutorials for Business Analyst – R While Loop with Example

(R Tutorials for Business Analyst) While Loop in R with Example A loop is a statement that keeps running until a condition is satisfied. The syntax for a while loop is the following: while (condition) { Exp } While Loop Flow Chart Note: Remember to write a closing condition at some point otherwise the loop …

R tutorials for Business Analyst – Functions in R Programming

(R Tutorials for Business Analyst) Functions in R Programming (with Example) What is a Function in R? A function, in a programming environment, is a set of instructions. A programmer builds a function to avoid repeating the same task, or reduce complexity. A function should be written to carry out a specified a tasks may or may not include …

R tutorials for Business Analyst – Merge Data Frames in R: Full and Partial Match

(R Tutorials for Business Analyst) Merge Data Frames in R: Full and Partial Match Very often, we have data from multiple sources. To perform an analysis, we need to merge two dataframes together with one or more common key variables. In this tutorial, you will learn Full match Partial match Full match A full match returns values that …