![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Nizamuddin Siddiqui has Published 2307 Articles
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
1K+ Views
To find the correlation matrix for rows of an R data frame, we can follow the below steps −First of all, create a data frame.Then, use cor function with transposed data frame to find the correlation matrix for rows.Example1Let's create a data frame as shown below − Live Demo> x1 x2 ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
358 Views
To find the sum of numbers stored in character vector separated with a special character in R, we can follow the below steps −First of all, create a vector having numbers stored in character vector separated with a special character.Then, use sapply and strsplit function to find the sum of ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
961 Views
To divide the row values by row mean in R data frame, we can follow the below steps −First of all, create a data frame.Then, use apply function to divide the data frame row values by row mean.Create the data frameLet's create a data frame as shown below − Live Demo> ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
1K+ Views
To create a horizontal line in ggplot2 graph with larger width in R, we can follow the below steps −First of all, create a data frame.Then, create a plot using ggplot2.After that, create the same plot with geom_hline function having horizontal line defined with yintercept and its width defined with ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
8K+ Views
To create a dashed horizontal line in a ggplot2 graph in R, we can follow the below steps −First of all, create a data frame.Then, create a plot using ggplot2.After that, create the same plot with geom_hline function having horizontal line defined with y intercept and its type defined with ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
3K+ Views
To create a histogram with Y-axis values as count using ggplot2 in R, we can follow the below steps −First of all, create a data frame.Then, use geom_histogram function of ggplot2 package with aes to create the histogram with Y-axis values as count.Create the data frameLet's create a data frame ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
334 Views
To check whether the difference between previous and current value in a column of an R data frame is 1, we can follow the below steps −First of all, create a data frame.Then, create a custom function for the difference between previous and current value.Now, use the function to check ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
980 Views
To create an ID column for the combination of values in multiple columns in R data frame, we can follow the below steps −First of all, create a data frame.Then, create an ID column using as.numeric, as.factor and with function for the combination of values in columns of the data ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
147 Views
To divide the row values by row standard deviation in R’s data.table object, we can follow the below steps −First of all, create a data.table object.Then, use apply function to divide the data.table object row values by row standard deviation.Create the data.table objectLet’s create a data.table object as shown below ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
2K+ Views
To add a regression line to a plot in base R if intercept and slope are given, we can follow the below steps −First of all, create two vectors and the scatterplot between them.Then, use abline function to create the regression line with intercept and slope given by a and ... Read More