![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
58 Views
To find the number of changes when tossing a coin in R, we can follow the below steps −First of all, create a vector using rbinom function.Then, use rle function to find the table of changes.After that, use length in the output of rle.Example 1Create the vectorLet’s create a vector ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
89 Views
To find the column means if some columns are categorical in R data frame, we can follow the below steps −First of all, create a data frame.Then, use numcolwise function from plyr package to find the column means ifsome columns are categorical.Example 1Create 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
459 Views
To convert list with varying number of elements into a data frame in R, we can use stri_list2matrix function of stringi package along with as.data.frame function.For Example, if we have a list called LIST that contains varying number of elements then we can convert it into a data frame by ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
188 Views
To create a column of log(1+x) in data frames stored in R list, we can follow the below steps −First of all, create a list of data frames.Then, use lapply function to create a column of log(1+x) in data frames stored in the list.ExampleCreate the list of data framesUsing data.frame ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
767 Views
To multiply vector values in sequence with matrix columns in R, we can follow the below steps −First of all, create a matrix.Then, create a vector.After that, use t function for transpose and multiplication sign * to multiply vector values in sequence with matrix columns.ExampleCreate the data frameLet’s create a ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
741 Views
To combine two rows in R matrix by addition, we can follow the below steps −First of all, create a matrix.Then, using plus sign (+) to add two rows and store the addition in one of the rows.After that, remove the row that is not required by subsetting with single ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
3K+ Views
To find the frequency of each value in an R data frame, we can use table function along with unlist function.For Example, if we have a data frame called df and we want to find the frequency of each value in df then we can use the below command −table(unlist(df))Example ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
266 Views
To convert alphabets to numbers in data.table object in R, we can follow the below steps −First of all, create a data.table object.Then, use mutate_each function of dplyr package along with chartr function to convert alphabets to numbers.ExampleCreate the data.table objectLet’s create a data.table object as shown below −library(data.table) v1Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
3K+ Views
To find the percentage of values that lie within a range in R data frame column, we can follow the below steps −First of all, create a data frame.Then, use sum function along with extreme values for range and length function to find the percentage of values that lie within ... Read More
![Nizamuddin Siddiqui](https://www.tutorialspoint.com/assets/profiles/218290/profile/60_42434-1594357075.jpg)
Nizamuddin Siddiqui
54 Views
To find the mean of a column summarized by other column names and common values in those columns in data.table object in R, we can follow the below steps −First of all, create a data.table object.Then, melt the data.table object using melt function from reshape2 package.After that, use dcast function ... Read More