
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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
3K+ Views
To display text in bar plot in the middle using ggplot2 in R, we can follow the below steps −First of all, create a data frame.Then, use ggplot function and geom_bar function to create the bar plot along with geom_text function to display the text in the middleExampleCreate the data ... Read More

Nizamuddin Siddiqui
252 Views
To find the percentage of zeros in each column of a data.table object in R, we can follow the below steps −First of all, create a data.table object.Then, use colSums function along with nrow function to find the percentage of zeros in each column.Example 1Create the data.table objectLet’s create a ... Read More

Nizamuddin Siddiqui
3K+ Views
To create a plot of matrix elements with the help of corrplot function, we would need to set is.corr argument to FALSE so that the matrix values will be plotted in the diagram, otherwise, the corrplot function requires correlation matrix instead of a matrix hence there will be an error ... Read More

Nizamuddin Siddiqui
579 Views
To remove rows in R matrix that contains a specific number, we can follow the below steps −First of all, create a matrix.Then, use single square subsetting with apply function to remove rows that contains a specific number.ExampleCreate the data frameLet’s create a data frame as shown below −MRead More

Nizamuddin Siddiqui
694 Views
To draw concentric circles, we can use draw.circle function of plotrix package but firstly, we would need to create a blank graph with plot function as shown below.For Example, we can create three concentric circles at position X=5 and Y=5 having radius of 1, 2, and 3 by using the ... Read More

Nizamuddin Siddiqui
3K+ Views
To convert values greater than a threshold into 1 in R data frame column, we can follow the below steps −First of all, create a data frame.Then, use ifelse function to convert values greater than a threshold into 1.ExampleCreate the data frameLet’s create a data frame as shown below −xRead More

Nizamuddin Siddiqui
407 Views
To subset R data frame rows if at least one or more values matches, we can follow the below steps −First of all, create a data frame.Then, use rowSums function along with sapply function and values for match to subset the data frame rows if at least one or more ... Read More

Nizamuddin Siddiqui
3K+ Views
To repeat column values in R data frame by values in another column, we can follow the below steps −First of all, create a data frame.Then, use rep function along with cbind function to repeat column values in the matrix by values in another column.ExampleCreate the data frameLet’s create a ... Read More

Nizamuddin Siddiqui
3K+ Views
To standardize selected columns in R data frame, we can follow the below steps −First of all, create a data frame.Then, use scale function with subsetting to standardize selected columns.ExampleCreate the data frameLet’s create a data frame as shown below −v1
How to convert a data frame into two column data frame with values and column name as variable in R?

Nizamuddin Siddiqui
957 Views
To convert a data frame into two column data frame with values and column name as variable in R, we can follow the below steps −First of all, create a data frame.Then, use stack function to convert data frame.ExampleCreate the data frameLet’s create a data frame as shown below −xRead More