Most viewed questions in Data Analytics

0 votes
9 answers

Creating an empty data.frame with only column names - R

Will the below code work to create ...READ MORE

Aug 1 in Data Analytics by preeti
20,744 views
0 votes
4 answers

Printing a data.frame without index - Python

.tolist() function will remove index READ MORE

Mar 11 in Data Analytics by nishant thakur
19,219 views
0 votes
2 answers

How to sum a variable by group in R?

You can also try this way, x_new = ...READ MORE

Jul 31 in Data Analytics by Cherukuri
• 32,260 points
11,853 views
0 votes
4 answers

How to remove NA values with dplyr::filter()

Can we create a alist as below ...READ MORE

Aug 5 in Data Analytics by anonymous
10,943 views
0 votes
4 answers

How to remove NA values from a Vector in R?

You can try na.omit() or na.exclude() too. ...READ MORE

Jul 31 in Data Analytics by anonymous
• 32,260 points
9,605 views
0 votes
2 answers

Filtering R data-frame with multiple conditions

librarry(dplyr) dataset >%> filter((a ==1,b>15 ) | (a==2,b&g ...READ MORE

Aug 8 in Data Analytics by anonymous
8,877 views
0 votes
11 answers

Changing the legend title in ggplot

Hi, you can also try guides() to ...READ MORE

Jul 30 in Data Analytics by Cherukuri
• 32,260 points
7,097 views
0 votes
1 answer

How to extract every nth element of a vector using R?

m <- 1:50 n<- m[seq(1, length(m), 6)] The above ...READ MORE

May 14, 2018 in Data Analytics by zombie
• 3,710 points
6,728 views
0 votes
2 answers

How to remove rows with missing values (NAs) in a data frame?

Hi, The below code returns rows without ...READ MORE

Aug 20 in Data Analytics by anonymous
• 32,260 points
6,156 views
0 votes
2 answers

Error: could not find function - R Programming

Yes, Just like @Maverik said, It happens ...READ MORE

Aug 22 in Data Analytics by anonymous
• 32,260 points
5,947 views
0 votes
2 answers

Counting the frequency of unique values - R

Try this, lapply(mtcars,function(x){ length(unique(x))}) READ MORE

Aug 20 in Data Analytics by anonymous
• 32,260 points
5,917 views
0 votes
1 answer

why we need beeline?

Hey Learner, Hope you're doing great. Would you please ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
4,736 views
0 votes
2 answers

What are the differences between overfitting and underfitting?

Overfitting is a modeling error which occurs when ...READ MORE

Aug 8 in Data Analytics by anonymous
4,643 views
0 votes
1 answer

How to add leading zeros in R?

There are several solutions to this. One of ...READ MORE

Apr 30, 2018 in Data Analytics by darklord
• 6,190 points
4,573 views
0 votes
1 answer

Removing outliers from a box-plot - ggplot2 - R

You just have to add 'outlier.shape=NA' inside ...READ MORE

May 31, 2018 in Data Analytics by Bharani
• 4,560 points
4,445 views
+1 vote
3 answers

Problem with installation of Wordcloud in anaconda

Using Anaconda Python 3.6 version For Windows ...READ MORE

Aug 7, 2018 in Data Analytics by Priyaj
• 57,300 points
4,366 views
0 votes
1 answer

How to convert a list to data frame in R?

Let's assume your list of lists is ...READ MORE

Apr 12, 2018 in Data Analytics by nirvana
• 3,060 points

edited Apr 12, 2018 by nirvana 4,101 views
0 votes
2 answers

How to use group by for multiple columns in dplyr, using string vector input in R?

data = data.frame(   zzz11def = sample(LETTERS[1:3], 100, replace=TRUE),   zbc123qws1 ...READ MORE

Aug 5 in Data Analytics by anonymous
3,890 views
0 votes
1 answer

Changing the order of bars in a bar-plot - ggplot2 - R

You can use the scale_x_discrete() function with ...READ MORE

May 28, 2018 in Data Analytics by Bharani
• 4,560 points
3,833 views
0 votes
1 answer

How to change fill color in each facet using ggplot2?

You can map the facetting variable to ...READ MORE

May 8, 2018 in Data Analytics by kappa3010
• 2,070 points
3,773 views
0 votes
2 answers

How to set working directory to source file location in R?

Hi,  I'm not sure about the command but you ...READ MORE

Aug 20 in Data Analytics by Cherukuri
• 32,260 points
3,574 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,800 points
3,566 views
0 votes
7 answers

How to iterate over rows in a Dataframe in pandas (Python)?

You can use IMHO: for ind in df.index: ...READ MORE

Dec 10, 2018 in Data Analytics by Ishaan
3,144 views
0 votes
3 answers

How to write lines to a text file in R?

sink("outfile.txt") cat("hello") cat("\n" ...READ MORE

May 24 in Data Analytics by anonymous
2,882 views
0 votes
2 answers

Replacing a row in pandas data.frame

key error. I love python READ MORE

Feb 18 in Data Analytics by anonymous
2,823 views
0 votes
2 answers

How can we count TRUE values in a logical vector?

Hi, You can get a count of all ...READ MORE

Aug 20 in Data Analytics by anonymous
• 32,260 points
2,807 views
0 votes
1 answer

Turn values into scientific notation in R

Consider the below vector: a<-c(0.1324,0.0001234,234.21341324,09.324324) You can convert it ...READ MORE

Jul 19, 2018 in Data Analytics by DataKing99
• 8,130 points
2,762 views
0 votes
2 answers
0 votes
1 answer

Error saying "Error in file(out, "wt") : cannot open the connection" when execute help command in r

Hey @Ali, change working dir, exit r ...READ MORE

Nov 20, 2018 in Data Analytics by Maverick
• 10,040 points
2,572 views
0 votes
1 answer

“subscript out of bounds” Error in r programming

This error is likely to occur when ...READ MORE

Oct 31, 2018 in Data Analytics by Kalgi
• 46,040 points
2,444 views
0 votes
3 answers

How can I add YAML current date in rmarkdown ?

<$today:MM/dd/yyyy> READ MORE

Mar 25 in Data Analytics by Anupam Das
2,229 views
0 votes
1 answer

Which function can I use to clear the console in R and RStudio ?

Description                   Windows & Linux           Mac Clear console                      Ctrl+L ...READ MORE

Apr 17, 2018 in Data Analytics by anonymous
2,205 views
0 votes
2 answers

Message saying "would you like to use a private library instead?" when trying to install a package

This question appears if your user environment ...READ MORE

Nov 4 in Data Analytics by Goose
• 140 points
2,137 views
0 votes
1 answer

How to convert dataframe columns from factors to characters?

To replace all the variables to character ...READ MORE

Apr 13, 2018 in Data Analytics by BHARANI
• 410 points
2,105 views
0 votes
1 answer

Extracting numeric columns from a data.frame - R

You can use the select_if() function from ...READ MORE

May 4, 2018 in Data Analytics by Bharani
• 4,560 points
2,062 views
0 votes
1 answer

Change font size of valueBox - shiny R

Try writing your valueBox with this syntax: valueBox( ...READ MORE

Dec 4, 2018 in Data Analytics by Haseeb
2,019 views
0 votes
1 answer

R programming error: { : missing value where TRUE/FALSE needed "

This should work: for ( i in 1:dim(m)[[1]] ...READ MORE

May 28 in Data Analytics by Zulaikha
• 870 points
1,989 views
0 votes
2 answers

How to count unique values in R?

You can try this way, as.data.frame(v) %>% count(v) READ MORE

Aug 8 in Data Analytics by anonymous
1,926 views
0 votes
1 answer

How to plot side-by-side Plots with ggplot2 in R?

By Using gridExtra library we can easily ...READ MORE

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

.SD in data.table in R

.SD stands for "Subset of Data.table". The ...READ MORE

Apr 12, 2018 in Data Analytics by nirvana
• 3,060 points
1,893 views
0 votes
1 answer

How can I define Global Variables in R?

The variables declared inside a function are ...READ MORE

Apr 25, 2018 in Data Analytics by shams
• 3,580 points
1,883 views
0 votes
1 answer

How can I save grid.arrange() plot to file ?

grid.arrange() directly draws on our device. However, ...READ MORE

May 16, 2018 in Data Analytics by zombie
• 3,710 points
1,860 views
0 votes
2 answers

What is the difference between correlation and covariance?

Correlation and Co-variance both are used as ...READ MORE

Jul 24, 2018 in Data Analytics by Anmol
• 3,620 points
1,820 views
0 votes
1 answer

Converting a pandas data-frame to a dictionary

Emp_dict=Employee.to_dict('records') You can directly use the 'to_dict()' function ...READ MORE

May 23, 2018 in Data Analytics by Bharani
• 4,560 points
1,820 views
0 votes
1 answer

Calculating accuracy of prediction of rpart model

Your first task would be to build ...READ MORE

Apr 4, 2018 in Data Analytics by Bharani
• 4,560 points
1,820 views
0 votes
1 answer

Extract a subset of a data frame based on a condition involving a field

Here are the two main approaches. I ...READ MORE

Jun 18, 2018 in Data Analytics by CodingByHeart77
• 3,690 points
1,712 views
0 votes
1 answer

Installing JQ on Mac by command-line

On a mac, any application can be ...READ MORE

Dec 6, 2018 in Data Analytics by Shubham
• 13,350 points

edited Dec 12, 2018 by Shubham 1,651 views
0 votes
2 answers

What is the difference between LDA and PCA for dimensionality reduction?

Principal Component Analysis (PCA) is an unsupervised ...READ MORE

Mar 6 in Data Analytics by Seema
• 140 points
1,537 views
0 votes
1 answer

Showing percentage instead of counts in a bar plot - ggplot2 - R

Load the 'scales' package first, which gives ...READ MORE

May 28, 2018 in Data Analytics by Bharani
• 4,560 points
1,536 views
+1 vote
1 answer

Jupyter Notebook : superscripts and subscripts

You can use the markdown cell to do this. ...READ MORE

Dec 6, 2018 in Data Analytics by Shubham
• 13,350 points

edited Dec 12, 2018 by Shubham 1,525 views