Data Types in R

The variable in the R language has a data type. All data types in R programming need some memory and have some operations that can be performed over it. We have the following data types in R programming: 1. Numeric data type in R The decimal values in the R language are called numeric. It … Read more

Arrays in R

Arrays in R can have more than two dimensions as compared to the matrix. Arrays in R, are created using the array() function. The array() function takes the vector as input and used its values in dim parameters to create an array. Suppose, we create an array of (2, 3, 4) dimensions, it will create … Read more

R Factor

The R factor is a data structure that is used for the purpose of the field which takes only a predefined finite number of values. R factors take a limited number of different values. To store data on multiple levels and categorize the data is done by these objects. Strings and integers can be stored … Read more

Bar Chart in R

The bar chart in R uses rectangular bars to visualize the data. The height of the bars is proportional to the values they represent. The bar charts can be displayed either horizontally or vertically. By using the barplot() function a vertical bar chart is drawn: Output The above example shows: The x variable represents values in the … Read more

Nonlinear Least Square

Nonlinear Least Square for used in regression in R. We see that it is a rare case that the equation of the model is a linear equation giving a linear graph when we used regression analysis for real-world data. Because mostly the model equation of real-world involves higher degree mathematical functions like an exponent of … Read more

Chi-Square Test

To analyze the frequency table Chi-Square Test is used. This table is formed by two categorical variables. This test is used to check whether there is a significant relationship between these two variables. The variable may be from the same population or maybe categories like On/Off, Male/Female, etc. The chisq.test() function is used to perform this test … Read more

Web Data in R

We can scrap and save web data in R. Every website has its own identity to provide data for the availability of its user in the form of XML, CSV, and txt files. You can filter specific data from that website with the help of R programming. “RCurl” XML” and “String” are packages that are … Read more

Distribution in R

There are two types of distribution in R as follow: Normal Distribution Binomial Distribution Normal Distribution in R The random collection of data from independent sources is known as normal distribution in R. Now we know that we will get a bell shape curve if we plot a graph with the value of the variable … Read more

R Visualization

Visually appealing data visualizations can be created by writing few lines of code. We use the diverse functions of R visualization as an efficient technique for gaining insight into data through a visual medium. A human can easily get information about hidden patterns in data that might be neglected. We can work with a large … Read more

XML File in R

XML is also a markup language that stands for extensible markup language like HTML. Which contains markups tags. You read the XML file in R by installing the XML package. This package can be installed using the following command. Creating XML file Create an XML file by copying the below data into a text editor … Read more