Most viewed questions in Data Analytics

0 votes
1 answer

How can I print string and variable contents on the same line using R?

There are two options for doing so.  You ...READ MORE

May 9, 2018 in Data Analytics by zombie
• 3,790 points
1,667 views
0 votes
3 answers

Can a C program be written in R programming language?

If you have a algorithm you can ...READ MORE

Apr 9, 2019 in Data Analytics by anonymous
1,659 views
0 votes
1 answer

Mean of one column with respect to another

Consider the inbuilt iris dataset in R. Use ...READ MORE

Jul 25, 2018 in Data Analytics by CodingByHeart77
• 3,740 points
1,658 views
0 votes
1 answer

How to extract specific columns from a dataframe in R?

Hi@akhtar, You can use the select method to ...READ MORE

Aug 7, 2020 in Data Analytics by MD
• 95,440 points
1,654 views
+1 vote
2 answers

Custom Function to replace missing values in a vector with the mean of values

Try this. lapply(a,function(x){ifelse(is.na(x),mean(a,na.rm = TRUE ...READ MORE

Aug 14, 2019 in Data Analytics by anonymous
1,654 views
0 votes
1 answer
0 votes
1 answer

Donut chart - R

@Kruthi, Refer to this blog on how to ...READ MORE

Oct 28, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,647 views
0 votes
1 answer

How to convert a text mining termDocumentMatrix into excel or csv in R?

By assuming that all the values are ...READ MORE

Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,642 views
0 votes
1 answer

How to filter a data frame with dplyr and tidy evaluation in R?

Requires the use of map_df to run each model, ...READ MORE

May 17, 2018 in Data Analytics by DataKing99
• 8,240 points
1,637 views
0 votes
1 answer

Why should I use set.seed function() in R?

set.seed(seed) Set the seed of R‘s random number ...READ MORE

Apr 24, 2018 in Data Analytics by zombie
• 3,790 points
1,637 views
+1 vote
1 answer

problem with tabitems in shiny R

Check your braces. Code tabitems after aws ...READ MORE

Nov 30, 2018 in Data Analytics by Maverick
• 10,840 points
1,631 views
+1 vote
1 answer

How to setup any database connection in R?

Here is how you set up a ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
1,626 views
0 votes
1 answer

webinar details to join the session

Session it got resolved READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
1,617 views
0 votes
1 answer

R - Split date into dd,mm,yy

I use superstore data and show how ...READ MORE

Oct 31, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,614 views
0 votes
1 answer

Split plot into multiple plots corresponding to each value of the field in R

Use facet_grid() and pass the field to ...READ MORE

Nov 4, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,609 views
0 votes
1 answer

How can I install older version of R package ?

Supposedly you want to install some old ...READ MORE

May 14, 2018 in Data Analytics by zombie
• 3,790 points
1,597 views
0 votes
1 answer

How to add layers in ggplot?

You can add multiple layers with one ...READ MORE

Oct 31, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,582 views
0 votes
1 answer

Is it possible to use a where clause within ggplot?

You can use the subset function to filter rows ...READ MORE

Nov 5, 2018 in Data Analytics by Kalgi
• 52,360 points
1,569 views
+1 vote
4 answers

Python vs. R for data science

I would say both Python and R ...READ MORE

Aug 1, 2019 in Data Analytics by briny
1,569 views
0 votes
1 answer

How to calculate group mean and assign it to new data in R

You can use something like this: df$grp.mean.values <- ...READ MORE

Jun 27, 2018 in Data Analytics by Sahiti
• 6,370 points
1,558 views
+1 vote
1 answer

R programming: glm() function

Since you mentioned you have factorized variables, ...READ MORE

Jan 23, 2019 in Data Analytics by Tyrion anex
• 8,700 points
1,549 views
0 votes
1 answer

How to take input from user in R?

Readline() function read input from console as ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,547 views
0 votes
1 answer
0 votes
1 answer

Duplicate axis for a R plot

Add duplicate axis using dup.axis attribute like ...READ MORE

Nov 4, 2019 in Data Analytics by radha
1,538 views
0 votes
1 answer

Error saying "Error in sprintf("%x", 2151028214):invalid format '%x'; use format %f, %e, %g or %a for numeric objects"

gcc : format ‘%x’ expects an argument ...READ MORE

Nov 12, 2018 in Data Analytics by Maverick
• 10,840 points
1,531 views
0 votes
1 answer
0 votes
1 answer

Check if a matrix is diagonalizable in R Programming Language

On a given matrix, a, the first way ...READ MORE

Dec 24, 2018 in Data Analytics by Tyrion anex
• 8,700 points
1,530 views
0 votes
1 answer

Error saying "Error in lag(x, 1) : unused argument (1)"

lag only works as expected with time-series ...READ MORE

Nov 16, 2018 in Data Analytics by Maverick
• 10,840 points
1,521 views
0 votes
1 answer

14) Building analytical cubes of CDRs and managing them efficiently is part of _________

Hi@ritu, Building analytical cubes of CDRs and managing ...READ MORE

Dec 2, 2020 in Data Analytics by MD
• 95,440 points
1,520 views
0 votes
1 answer

which to use fill or color to show colors in R plots?

The color attribute is only used for ...READ MORE

Nov 4, 2019 in Data Analytics by komal
1,520 views
0 votes
1 answer

how to run a logistic regression with clustered standard errors in R?

have a look at rms package. lrm is logistic ...READ MORE

Nov 6, 2018 in Data Analytics by Kalgi
• 52,360 points
1,512 views
+1 vote
3 answers

What is logistic regression?

Logistic regression is analysis to conduct when ...READ MORE

Aug 7, 2019 in Data Analytics by anonymous
1,512 views
0 votes
1 answer

Shiny app - tabs refresh content

Asha, It's very important to not add too ...READ MORE

Sep 24, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,509 views
0 votes
1 answer

Create a tree model in R from data.frame?

See the below example to understand how ...READ MORE

Aug 30, 2019 in Data Analytics by anonymous
• 33,030 points
1,505 views
0 votes
0 answers

Convert columns into rows in R Data frame

Can we convert columns into rows in ...READ MORE

Jul 12, 2019 in Data Analytics by Anita
1,504 views
+1 vote
2 answers

Skills required to become an R programmer

As you want to become an r ...READ MORE

Aug 16, 2019 in Data Analytics by anonymous
• 33,030 points
1,503 views
0 votes
1 answer

Lot of errors when trying to install R package "igraph"

change your ~/.R/Makevars file as C=gcc-5 CXX=g++ CXX1X = g++-5 CFLAGS = ...READ MORE

Nov 12, 2018 in Data Analytics by Maverick
• 10,840 points
1,503 views
0 votes
1 answer

How to add tooltips to ggplot object?

@ashish, you can use ggplotly package to ...READ MORE

Oct 28, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,491 views
0 votes
1 answer

How to drop rows of Pandas DataFrame whose value in certain coulmns is NaN

Hi@DataKing99, You can create one function according to ...READ MORE

May 7, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Jun 9, 2020 by MD 1,487 views
0 votes
1 answer

How to spilt a column of a data frame into multiple columns

it is easily achievable by using "stringr" ...READ MORE

Apr 9, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,484 views
0 votes
1 answer

Using "dplyr" to summarise multiple columns

You can use the "sumamrise_all()" function for ...READ MORE

Mar 27, 2018 in Data Analytics by Bharani
• 4,660 points
1,482 views
0 votes
1 answer

Unable to install the 'devtools' package in R

Run the below command in your Ubuntu/Linux ...READ MORE

Jun 6, 2018 in Data Analytics by Bharani
• 4,660 points
1,481 views
+1 vote
1 answer

Building a Time series prediction model on web login timestamp

I had done something similar and ran ...READ MORE

Dec 7, 2018 in Data Analytics by Upasana
• 8,620 points
1,477 views
0 votes
1 answer

How to wait for a keypress in R?

It is easy by using readline readline(prompt="Press any ...READ MORE

Apr 25, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,476 views
0 votes
1 answer

Applying the same function to every row of a data.frame - R

You can use the 'appply()' function for ...READ MORE

May 22, 2018 in Data Analytics by Bharani
• 4,660 points
1,459 views
+1 vote
2 answers

How to sort a data frame by columns in R?

You can use dplyr function arrange() like ...READ MORE

Aug 21, 2019 in Data Analytics by anonymous
• 33,030 points
1,458 views
0 votes
1 answer

How to delete DataFrame row in pandas based upon a column value?

You can use drop function in your ...READ MORE

May 3, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Jun 9, 2020 by MD 1,449 views
0 votes
1 answer

Error saying "Error in df$item : object of type 'closure' is not subsettable" when trying to use arules package

Try replacing ID <- c("A123","A123","A123","A123","B456","B456","B456") item <- c("bread", "butter", ...READ MORE

Nov 15, 2018 in Data Analytics by Maverick
• 10,840 points
1,446 views
+1 vote
1 answer

How to sendkeysElement using R?

You have silly typo errors in your ...READ MORE

Dec 18, 2018 in Data Analytics by Tyrion anex
• 8,700 points
1,445 views
+1 vote
1 answer

as.data.frame not working expected

Try using: setNames(as.data.frame(t(normData[-1])), normData[[1]]) ...READ MORE

Nov 5, 2018 in Data Analytics by Kalgi
• 52,360 points
1,445 views