Press "Enter" to skip to content

Posts tagged as “R”

What is leaflet package in R?

Zigya Acadmey 0

What’s leaflet? The leaflet is an open-source JavaScript library for interactive web maps. The leaflet is designed with simplicity, performance, and usability in mind. It’s lightweight, simple, and flexible, and is probably the most popular open-source mapping library…

What is stringr package in R?

Zigya Acadmey 0

Large data sets are often awash with data that is difficult to decipher. One may think of textual data, names, unique identifiers, and other sorts of codes. Frequently, people analyzing…

What is Plotly package in R

Zigya Acadmey 0

Creating and generating plots can be done using a new package in R called “plotly”. With plotly we can create many interactive plots. In this article, we’ll learn how to…

What is DT package in R?

Zigya Acadmey 0

In this article, we’ll learn about a new package in R called ‘DT’. The default print function in R, is not an effective way to display the contents, especially in…

What is janitor package in R?

Zigya Acadmey 0

We all know the many hours spent cleaning and wrangling data. Sometimes I think my actual job is not “Data Scientist” but “Data Cleaner”.Data, as you surely know, is not often…

What is dplyr package in R?

Zigya Acadmey 0

What is dplyr ? dplyr is a powerful R-package to transform, summarize, and perform data manipulation. The package contains a set of functions (or “verbs”) that perform common data manipulation…

Anonymous Functions in R

Zigya Acadmey 0

In R, functions are objects in their own right. They aren’t automatically bound to a name. Unlike many languages (e.g., C, C++, Python, and Ruby), R doesn’t have a special…

What is tidyr package in R?

Zigya Acadmey 0

tidyr is new package that makes it easy to “tidy” your data. Tidy data is data that’s easy to work with: it’s easy to munge (with dplyr), visualise (with ggplot2…

What are Functions in R?

Zigya Acadmey 0

In this article, we’ll learn what functions are and all the parts inside a function in R. A function is a set of statements organized together to perform a specific…

Decision Tree in R

Zigya Acadmey 0

Decision Trees are versatile Machine Learning algorithm that can perform both classification and regression tasks. They are very powerful algorithms, capable of fitting complex datasets. Besides, decision trees are fundamental components…

What is Multiple Regression in R?

Zigya Acadmey 0

R is one of the most important languages in the field of data analysis and analytics, and so the multiple linear regression in R carries importance. It defines the case where a single response variable Y is linearly dependent on multiple predictor variables. What is Multiple Linear Regression? A technique used for predicting a variable result that depends on two or more variables is a multilinear regression. It is also called multiple regression. It is a linear regression extension. The calculated variable is the dependent variable, which is referred to as independent or informative variables in the variables used to predict the dependent variable meaning. Multilinear regression allows researchers to assess the model variance and the relative contribution of each independent variable. Multiple regression is of two forms, linear and nonlinear regression. The general mathematical equation for multiple regression is − y = b + b1x1 + b2x2 +...bnxn Description of the parameters used…

What is Linear Regression in R?

Zigya Acadmey 0

In this article, you will learn the basics behind a very popular statistical model, the linear regression. What is Linear Regression In statistics, linear regression is a linear approach to modeling the relationship between a scalar response…

Statistical functions in R

Zigya Acadmey 0

In this article, you’ll learn Statistical functions used in R. We will also be each one of them with an example and various ways to use them for better understanding.…

Functions for data summarization in R?

Zigya Acadmey 0

People remain uncertain when it comes to summarizing actual data easily in R. There are a variety of choices. So who is the right one? I addressed the query below. At first, you must pick one. And become an expert on this. That’s how you’re going to switch to the next. In this article, I will discuss the primary methods of summarizing data sets. Let’s hope this makes the trip much smoother than it seems. Methods for summarizing data in R apply() Apply function returns a vector or array or a list of values achieved by applying a function to rows or columns. This is the easiest of all the tasks that can do this work. However, this feature is very unique to either row or column collapsing. Usage Arguments Values Description x an array, including a matrix. MARGIN a vector giving the subscripts which the function will be applied over. E.g., for…

What is Coercion in R?

Zigya Acadmey 0

R’s coercion behavior may seem inconvenient, but it is not arbitrary. R always follows the same rules when it coerces data types. Once you are familiar with these rules, you…

How to merge objects in R?

Zigya Acadmey 0

In this article, you’ll learn how to merge objects in R. Merging objects is a very frequently used concept in data analysis. R provides a broad range of capabilities to…

Subsetting R objects.

Zigya Acadmey 0

R’s subsetting operators are powerful and fast. Mastery of subsetting allows you to succinctly express complex operations in a way that few other languages can match. As an illustration in…

Built-in Constants R

Zigya Acadmey 0

In this article, you’ll learn about constants in R. And how to use them. Constants, as the name suggests, are entities whose value cannot be altered. Basic types of constant…

Finding and Removing Duplicates in R

Zigya Acadmey 0

This article explain how to recognise and erase duplicate data in R.  You’ll learn how to use the following R base and dplyr functions: R base functions duplicated() determines which elements of a vector or data frame are duplicates of elements with smaller subscripts, and returns a logical vector indicating which elements (rows) are…

How to save plots in R?

Zigya Acadmey 0

Since R runs on so many different operating systems, and supports so many different graphics formats, it’s not surprising that there are a variety of ways of saving your plots,…

How to create a Box plot?

Zigya Acadmey 0

In this article, you’ll learn how to box plot in R. We will also be creating an example plot and will make various changes to the same existing plot for…

How to create a Bar plot?

Zigya Acadmey 0

A Bar Graph (or a Bar Chart) is a graphical display of data using bars of different heights.They are good if you want to visualize the data of different categories…

What is a Factor in R?

Zigya Acadmey 0

The factors are the variable in R, which takes the categorical variable and stores data in levels. Factors can be ordered or unordered and are an important class for statistical…

What is a list in R?

Zigya Acadmey 0

One of the most important data structures in R is List. A list is a great tool to store many kinds of objects in the order expected. We can include matrices, vectors…

What are Arrays in R?

Zigya Acadmey 0

An array is a data structure that can hold multi-dimensional data. In R, the array is objects that can hold two or more than two-dimensional data. For example, in square…

What is a Matrix in R?

Zigya Acadmey 0

In R, a matrix is a collection of elements of the same data type (numeric, character, or logical) arranged into a fixed number of rows and columns. Creating Matrices One…

What is a Data Frame in R?

Zigya Acadmey 0

First of all, we are going to discuss from where the concept of a data frame came. The origin of data frames stems from intensive empirical research in the world of…

How to Read data in Rstudio?

Zigya Acadmey 0

R is capable of reading data from most formats, including files created in other statistical packages. Whether the data was prepared using Excel (in CSV, XLSX, or TXT format), R…

What is Vector in R?

Zigya Acadmey 0

Even when you write just one value in R, it becomes a vector of length 1 and belongs to one of the above vector types. Vectors are generally created using…

What are all Data types in R?

Zigya Acadmey 0

Data types are an integral part of any programming language. They are one of the pioneer building blocks and the development of any programming language usually revolves around them. Consider…