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…
Posts published in “Data Science”
Data science is an inter-disciplinary area that uses scientific methods, processes, statistical concepts, algorithms and systems / languages to extract knowledge and hindsight to insights to foresight from many structural and unstructured data. Data science is related to data modeling, data mining, Artificial Intelligence, machine learning and big data.
Replacing a value is very easy, thanks to replace() in R to replace the values. In data analysis, there may be plenty of instances where you have to deal with…
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…
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…
Removing NA values in a vector Lets create a vector containing NA values before removing NA values. As you can see based on the output of the RStudio console, our…
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…
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…
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…
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…
In every computer language variables provide a means of accessing the data stored in memory. R does not provide direct access to the computer’s memory but rather provides a number of…
Comment lines include the line of code or any sort of information that mainly specifies the other programmers (apart from the one who designed the code) about the functionality of…
After installing R and RStudio, the question is now how to start using R/RStudio. In this article, we’ll describe how to run RStudio and to set up your working directory.…
An R script is simply a text file containing (almost) the same commands that you would enter on the command line of R. Coding in R 1. You can get the R console…
Installing R and RStudio on your personal computer is super easy. I hope this helps others who are starting their Data Science journey with R programming. RStudio is an integrated…
R is a programming language and free software environment for statistical computing and graphics supported by the R Foundation for Statistical Computing. As R language is widely used among statisticians…