×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
1485
Answers
How to create violin plot for categories with grey color palette using ggplot2 in R?
R Programming
Server Side Programming
Programming
Nizamuddin Siddiqui
Published on 14-Jul-2021 07:38:28
To create violin plot for categories with grey color palette using ggplot2, we can follow the below steps −First of all, create a data frame.Then, create the violin plot for categories with default color of violins.Create the violin plot for categories with color of violins in grey palette.Creating the data ...
Read More
How to divide the data frame rows in R by row standard deviation?
R Programming
Server Side Programming
Programming
Nizamuddin Siddiqui
Published on 14-Jul-2021 07:32:26
To divide the data frame row values by row standard deviation in R, 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 standard deviation.Creating the data frameExampleLet's create a data frame as shown below ...
Read More
How to subtract column values from column means in R data frame?
R Programming
Server Side Programming
Programming
Nizamuddin Siddiqui
Published on 14-Jul-2021 07:12:11
To subtract column values from column means in R data frame, we can follow the below steps −First of all, create a data frame.Then, find the column means using colMeans function.After that, subtract column values from column means.Creating the data frameExampleLet's create a data frame as shown below − Live Demo> ...
Read More
How to test for significant relationship between two categorical columns of an R data frame?
R Programming
Server Side Programming
Programming
Nizamuddin Siddiqui
Published on 17-Mar-2021 07:45:52
To test for the significance of proportion between two categorical columns of an R data frame, we first need to find the contingency table using those columns and then apply the chi square test for independence using chisq.test. For example, if we have a data frame called df that contains ...
Read More
How to replace a particular value in R data frame with a new value?
R Programming
Server Side Programming
Programming
Nizamuddin Siddiqui
Published on 17-Mar-2021 07:41:37
To replace a particular value in R data frame with a new value, we can use ifelse function where the new value will be placed after the condition and if the column values do not match the condition then the same column will be placed. For example, if we have ...
Read More
How to create boxplot in base R with higher width of the box lines?
R Programming
Server Side Programming
Programming
Nizamuddin Siddiqui
Published on 17-Mar-2021 07:36:50
To create boxplot in base R with higher width of the box lines, we can use the boxlwd argument inside boxplot function. For example, if we have a vector called x then we can create the boxplot with higher width of the box lines using the command −boxplot(x, boxlwd=5)Example Live Demox<-rnorm(10000) ...
Read More
How to find the fractional power of a negative number in R?
R Programming
Server Side Programming
Programming
Nizamuddin Siddiqui
Published on 17-Mar-2021 07:33:33
To find the fractional power of a negative number, we can find the power separately for the numerator and denominator where denominator will have the numerator 1. For example, if we have a vector called x that contains a single value -10 then the fractional power 15/7 of x can ...
Read More
How to find the sum of every n values if missing values exists in the R data frame?
R Programming
Server Side Programming
Programming
Nizamuddin Siddiqui
Published on 17-Mar-2021 07:31:17
To find the sum of every n values in R data frame columns if there exist missing values, we can use rowsum function along with rep function that will repeat the sum for rows and na.rm=TRUE to exclude the rows with missing values. For example, if we have a data ...
Read More
How to check if an R matrix column contains only duplicate values?
R Programming
Server Side Programming
Programming
Nizamuddin Siddiqui
Published on 17-Mar-2021 07:23:10
To check if an R matrix column contains only duplicate values, we can use dim function for the dimension of the column after accessing the matrix column with table function. For example, if we have a matrix called M having five columns then we can check whether first column contains ...
Read More
How to find the number of levels in R for a factor column?
R Programming
Server Side Programming
Programming
Nizamuddin Siddiqui
Published on 17-Mar-2021 07:19:54
To find the number of levels in R for a factor column, we can use length function along with unique function. For example, if we have a data frame called df that contains a factor column X then we can find the number of levels in the factor column using ...
Read More
1
2
3
4
5
6
7
...
149
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout