Most viewed questions in Data Analytics

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
5,189 views
0 votes
1 answer

R - Bar chart (bivariate/multivariate Analysis)

The bivariate analysis could be shown in ...READ MORE

Aug 22, 2019 in Data Analytics by anonymous
• 33,030 points
5,148 views
0 votes
1 answer

How to run R code using JAVA program?

You're trying to call an external application. ...READ MORE

Mar 12, 2019 in Data Analytics by Sophie may
• 10,610 points
5,110 views
0 votes
1 answer

reverse a list or vector in R

@ch, Use rev function to reverse R objects ...READ MORE

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

How to drop factor levels in a subsetted data frame?

You can use factor(ff) to drop levels ...READ MORE

Apr 17, 2018 in Data Analytics by kappa3010
• 2,090 points

edited Apr 17, 2018 by kappa3010 5,048 views
0 votes
1 answer

Unable to install TA-Lib on Pycharm

It took me a while to solve ...READ MORE

May 15, 2019 in Data Analytics by Sophie may
• 10,610 points
5,035 views
0 votes
2 answers

How does data cleaning play a vital role in data analysis

Data is the core you do your ...READ MORE

Jul 24, 2018 in Data Analytics by Abhi
• 3,720 points
4,954 views
0 votes
1 answer

How to save leaflet object as an image?

Yes, you can save leaflet objects as ...READ MORE

Oct 28, 2019 in Data Analytics by Cherukuri
• 33,030 points
4,906 views
0 votes
2 answers

Top N and Last N records in R Data Frame

Hi, top_n( ) and top_frac( ) also is ...READ MORE

Sep 3, 2019 in Data Analytics by anonymous
• 33,030 points
4,883 views
0 votes
1 answer

How to put border for all legends together and separate borders for each legend in ggplot?

Hi Anitha, There are 2 functions used to ...READ MORE

Jul 24, 2019 in Data Analytics by Cherukuri
• 33,030 points
4,878 views
0 votes
1 answer

How to save a DataFrame in R??

Suppose your DataFrame is named as df: write.csv(df,file="exmp.csv") Then ...READ MORE

Apr 20, 2018 in Data Analytics by DeepCoder786
• 1,720 points
4,833 views
0 votes
1 answer

Error in shiny R "Warning: Error in read.table: 'file' must be a character string or connection"

Your if statement in the server.R is ...READ MORE

Dec 5, 2018 in Data Analytics by Maverick
• 10,840 points
4,728 views
0 votes
1 answer

How to sample n random rows per group in a dataframe?

You can assign a random ID to ...READ MORE

Jul 3, 2018 in Data Analytics by Sahiti
• 6,370 points
4,711 views
0 votes
1 answer

Plot two variables as lines on the same graph using ggplot

If you have small number of variables, ...READ MORE

Apr 17, 2018 in Data Analytics by kappa3010
• 2,090 points
4,701 views
+1 vote
1 answer

Error when trying to convert data frame into a csv file in R

If packages.csv file is open on your ...READ MORE

Nov 21, 2018 in Data Analytics by Kalgi
• 52,360 points
4,688 views
+1 vote
1 answer

"Error in eval(ei, envir) : object 'RDX2' not found" when trying to source the code in R

This is a very common issue that ...READ MORE

Oct 30, 2018 in Data Analytics by Maverick
• 10,840 points
4,683 views
0 votes
1 answer

": cannot open the connection" Error in R

There can be two reasons for this ...READ MORE

Oct 31, 2018 in Data Analytics by Kalgi
• 52,360 points
4,653 views
0 votes
1 answer

How to export a graph to .eps file with R?

The easiest way that I could suggest ...READ MORE

Apr 27, 2018 in Data Analytics by Sahiti
• 6,370 points
4,631 views
+1 vote
2 answers

How to count the number of elements with the values in a vector?

Use dplyr function group_by(). > n = as.data.frame(num) > ...READ MORE

Aug 21, 2019 in Data Analytics by anonymous
• 33,030 points
4,577 views
+1 vote
1 answer

Difference between factor and as.factor in R programming

Hey @Ali, as.factor is a wrapper for ...READ MORE

Oct 29, 2018 in Data Analytics by Maverick
• 10,840 points
4,511 views
0 votes
1 answer

Add a index/Row number column to dataframe

Hi, Bharath. You can add index using seq(1:nrow(data frame)). Example ...READ MORE

Sep 10, 2019 in Data Analytics by Cherukuri
• 33,030 points
4,414 views
+1 vote
1 answer

Error saying "vector size cannot be NA" when using R with data mining

You can use the removesparseterm function.  Removes sparse ...READ MORE

Nov 15, 2018 in Data Analytics by Maverick
• 10,840 points
4,390 views
0 votes
1 answer

Add buttons to perform actions on the leaflet map.

@ch, You can add easy buttons to add ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
4,385 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,660 points
4,347 views
0 votes
1 answer

How to use add_tally() and add_count()

Hey, add_tally and add_count returns the count of ...READ MORE

Sep 10, 2019 in Data Analytics by Cherukuri
• 33,030 points
4,319 views
0 votes
1 answer

Trigger a data refresh in shiny

You're looking for invalidateLater. Put this, with the ...READ MORE

May 31, 2018 in Data Analytics by Sahiti
• 6,370 points
4,315 views
0 votes
2 answers

Sorting algorithms available in R

R basically supports two different types of ...READ MORE

Aug 17, 2018 in Data Analytics by zombie
• 3,790 points
4,303 views
0 votes
1 answer

How to use dplyr functions such as filter() inside nested data frames with map()

You can use map() call as follows:  map(full, ...READ MORE

Apr 6, 2018 in Data Analytics by Sahiti
• 6,370 points
4,282 views
0 votes
1 answer

How to remove HTML tags from string in R Programming?

Try this simple code to remove the <br ...READ MORE

Feb 1, 2019 in Data Analytics by Sophie may
• 10,610 points
4,272 views
0 votes
1 answer

What are the important skills to have in Python with regard to data analysis?

The following are some of the important ...READ MORE

Aug 20, 2018 in Data Analytics by Abhi
• 3,720 points
4,272 views
0 votes
1 answer

In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘gridExtra’

Hi@akhtar, In your r studio, the gridExtra module ...READ MORE

Jun 10, 2020 in Data Analytics by MD
• 95,440 points
4,244 views
0 votes
1 answer

Python or R – Which one would you prefer for text analytics?

We will prefer Python because of the ...READ MORE

Aug 20, 2018 in Data Analytics by Abhi
• 3,720 points
4,239 views
0 votes
1 answer

How to write a custom function which will replace all the missing values in a vector with the mean of values in R?

Consider this vector: a<-c(1,2,3,NA,4,5,NA,NA) Write the function to impute ...READ MORE

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

How to evaluate expression given as a string in R?

The eval() function evaluates an expression, but "5+5" is a string, ...READ MORE

Jun 7, 2018 in Data Analytics by DataKing99
• 8,240 points
4,209 views
0 votes
1 answer

Error saying "some group too small for qda"

It's not wrong code (there is little ...READ MORE

Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
4,175 views
0 votes
1 answer

R plot arima fitted model with the original series

This question has many ways to answer, ...READ MORE

May 19, 2018 in Data Analytics by DataKing99
• 8,240 points
4,174 views
0 votes
1 answer

How do I convert a dataframe to a list?

For doing this first you'll have to ...READ MORE

Sep 19, 2018 in Data Analytics by Abhi
• 3,720 points
4,115 views
0 votes
1 answer

Error saying "ERROR: Expected tag to be of type header" while creating a dashboard using shiny R

sliderInput("bins","number of breaks",1,100,50), this line should come under ...READ MORE

Nov 30, 2018 in Data Analytics by Maverick
• 10,840 points
4,109 views
0 votes
1 answer

How to convert data.frame object to transaction object?

You can either convert a data frame ...READ MORE

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

Create a dual axis column/bar chart using ggplot in R

Add position = "stack" in geom_bar() function ...READ MORE

Nov 4, 2019 in Data Analytics by sindhu
4,065 views
0 votes
1 answer

Error in library(plotrix) : there is no package called ‘plotrix’

Hi@akhtar, You can use the install command at ...READ MORE

Oct 28, 2020 in Data Analytics by MD
• 95,440 points
4,018 views
0 votes
1 answer

How can I change font size and direction of axes text in ggplot2 ?

You can try theme(): Library(ggplot2) a <- data.frame(x=gl(10, 1, ...READ MORE

May 30, 2018 in Data Analytics by zombie
• 3,790 points
4,018 views
0 votes
1 answer

Catch integer(0) in R

R's way of printing a zero length ...READ MORE

Apr 27, 2018 in Data Analytics by kappa3010
• 2,090 points
4,009 views
0 votes
1 answer

Pop up always visible without clicking on the marker in leaflet

@Ch, Pop-up cannot be enabled by default. Another ...READ MORE

Sep 23, 2019 in Data Analytics by Cherukuri
• 33,030 points
3,983 views
0 votes
0 answers

How to use the where clause in R programming?

I'm trying to implement a where clause ...READ MORE

Dec 24, 2018 in Data Analytics by Sophie may
• 10,610 points
3,965 views
0 votes
1 answer

How can I perform word stemming in R

The tm package in R provides the stemDocument() function to stem the ...READ MORE

Aug 20, 2018 in Data Analytics by Abhi
• 3,720 points
3,959 views
0 votes
1 answer

Error saying "could not find function "read_html"" when trying to use read_html function

Hey @Ali, Execute the following two commands: install.packages(&l ...READ MORE

Nov 21, 2018 in Data Analytics by Maverick
• 10,840 points
3,957 views
0 votes
1 answer

batch file to run R Script

easy peasy. just pop the following into a ...READ MORE

May 24, 2020 in Data Analytics by anonymous
3,954 views
0 votes
1 answer

Error saying "Error in open.connection(x, "rb") : Timeout was reached:"

Hey @Ali, even I had faced the ...READ MORE

Nov 21, 2018 in Data Analytics by Maverick
• 10,840 points
3,947 views
0 votes
1 answer

How to remove an element from a list in R?

Hi@akhtar, You can remove a value from a ...READ MORE

Oct 30, 2020 in Data Analytics by MD
• 95,440 points
3,941 views