Trending questions in Data Analytics

+1 vote
2 answers

unique length of combinations

Try this: sum(mtcars$mpg == 21.0 & mtcars$cyl == ...READ MORE

Dec 26, 2018 in Data Analytics by Omkar
• 69,210 points
414 views
0 votes
1 answer

Assigning global variables from inside a function - R

You can assign global variables from inside ...READ MORE

May 15, 2018 in Data Analytics by Bharani
• 4,660 points
10,197 views
+1 vote
1 answer

How to plot pixels in R?

You could use ggplot with the option geom_point(shape = "."). For ...READ MORE

Dec 6, 2018 in Data Analytics by Maverick
• 10,840 points
1,255 views
0 votes
1 answer

Loop to automate the plotting process in R

Try something like this: library(tidyverse) data(iris) ## create a grid ...READ MORE

Dec 7, 2018 in Data Analytics by Maverick
• 10,840 points
1,202 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,660 points
9,502 views
+3 votes
1 answer

Predict weight and height of a person based on his nationality in R

One of the way by which you ...READ MORE

Dec 12, 2018 in Data Analytics by Kalgi
• 52,360 points
787 views
+1 vote
1 answer

Does Geshi support the R programming language?

rplus was not included in the official ...READ MORE

Dec 21, 2018 in Data Analytics by Sophie may
• 10,610 points
451 views
0 votes
1 answer

What is the difference between R and SPSS?

One of the main difference is R ...READ MORE

Dec 11, 2018 in Data Analytics by Maverick
• 10,840 points
919 views
0 votes
1 answer

Error saying "Error: package or namespace load failed for ‘FactoMineR’" when using data mining on RStudio

Try reinstalling the package quantreg. Hope this works. Its ...READ MORE

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

Can we have an if loop inside a for loop in R programming?

You're If loop doesn't have any condition ...READ MORE

Dec 21, 2018 in Data Analytics by Sophie may
• 10,610 points
425 views
0 votes
2 answers

How to add sliderbars in a shiny R dashboard?

To add slider bar and slider range ...READ MORE

Dec 5, 2018 in Data Analytics by Kalgi
• 52,360 points
1,146 views
+1 vote
1 answer

R error: Cannot install package while starting R

Try to reinstall R. I got a ...READ MORE

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

Caret and Shiny R giving error

try this server.R code: server=function(input, output){ values ...READ MORE

Dec 5, 2018 in Data Analytics by Maverick
• 10,840 points
1,083 views
+1 vote
1 answer

Identify object in R

Hi,  You can use ? followed by the ...READ MORE

Jul 2, 2019 in Data Analytics by anonymous
• 33,030 points
438 views
+1 vote
1 answer

R programming error

Alright, you can either use gsub to match the ...READ MORE

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

How can I reactively add actionButtons to the tableOutput?

Use DT for this purpose: library(shiny) library(DT) ui <- fluidPage( ...READ MORE

Dec 6, 2018 in Data Analytics by Maverick
• 10,840 points
1,021 views
+1 vote
1 answer

What are the drawbacks of trycatch method?

These are the drawbacks of using try-catch: You ...READ MORE

Nov 6, 2018 in Data Analytics by Kalgi
• 52,360 points
2,233 views
+1 vote
1 answer

R Programming: matrices

Try this, It will test if a matrix ...READ MORE

Dec 17, 2018 in Data Analytics by Sophie may
• 10,610 points
442 views
0 votes
1 answer

How to color geom_bar by y-axis values?

You can use cut ggplot(cars, aes(x = as.factor(cyl))) + ...READ MORE

Dec 6, 2018 in Data Analytics by Maverick
• 10,840 points
954 views
+1 vote
1 answer
+1 vote
1 answer

Machine Learning and Python Code

You can create an array called actualScore ...READ MORE

Dec 13, 2018 in Data Analytics by Shubham
• 13,490 points
551 views
0 votes
1 answer

Error saying 'shinyServer(function(input,output){ output`$histogram`" while creating dashboard using shiny R

Try this for your server.R library(shiny) library(shinydashboard) shinyServer(function(input,output){ output$`$histogram`<- ...READ MORE

Nov 30, 2018 in Data Analytics by Maverick
• 10,840 points
1,168 views
+1 vote
2 answers

Finding number of missing values and removing those missing values from a data-frame

To find number of missing values for ...READ MORE

Aug 14, 2019 in Data Analytics by anonymous
866 views
+1 vote
1 answer

We can list all data frames in R, Is that possible in python?

Try this: h = [g for n, g ...READ MORE

Dec 11, 2018 in Data Analytics by Maverick
• 10,840 points
595 views
+1 vote
2 answers

Error saying "R cannot be resolved" Android Error

Also check this out: https://www.edureka.co/community/29897/saying-ca ...READ MORE

Dec 12, 2018 in Data Analytics by Maverick
• 10,840 points
491 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
5,190 views
0 votes
1 answer

Select table name and corresponding columns frim the sql file - R

Try something like this: library(stringr) library(dplyr) library(tidyr) text <- readLines("file.txt") dataFrame <- ...READ MORE

Dec 11, 2018 in Data Analytics by Maverick
• 10,840 points
572 views
0 votes
1 answer

What ~ (tilde) command do?

Something that characterizes formulas in R is ...READ MORE

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

How do I modify the background grid in ggplot?

You can use the function called background_grid().  This ...READ MORE

Dec 7, 2018 in Data Analytics by Maverick
• 10,840 points
774 views
+1 vote
1 answer

Filter something from dataframe in an order in R

You can use conditional filtering for this ...READ MORE

Dec 13, 2018 in Data Analytics by Maverick
• 10,840 points
473 views
0 votes
1 answer

What is withCallingHandlers and how does it work?

withCallingHandlers works similar to tryCatch but remembers the call stack down ...READ MORE

Nov 6, 2018 in Data Analytics by Kalgi
• 52,360 points
2,062 views
0 votes
1 answer

Unable to move table rows in shiny r

Try this: library(shiny) library(DT) iris2 = head(iris, 30) server <- function(input, ...READ MORE

Dec 6, 2018 in Data Analytics by Maverick
• 10,840 points
781 views
0 votes
1 answer

Error saying "duplicate 'row.names' are not allowed" when trying to setup my data for the mlogit-package

Take out the chid.var argument in your call to mlogit.data, ...READ MORE

Nov 12, 2018 in Data Analytics by Maverick
• 10,840 points
1,764 views
0 votes
2 answers

Recommender Systems

hello, i have one project which is based ...READ MORE

Mar 30, 2019 in Data Analytics by JAY SHAH
1,275 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
+1 vote
2 answers

How can I get experience in Data Science as a fresher?

Work on projects of your own. It’s tough, ...READ MORE

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

Error saying "ERROR: unused argument (menuItem("Amazon-web-service"))"

This error usually means you're screwing the ...READ MORE

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

"no applicable method" Error in r programming

This is caused by using an object-oriented ...READ MORE

Oct 31, 2018 in Data Analytics by Kalgi
• 52,360 points
2,261 views
+1 vote
1 answer

R - Fitting polynomials to data

lm(y ~ x + I(x^2) + I(x^3)) This ...READ MORE

Dec 11, 2018 in Data Analytics by Maverick
• 10,840 points
430 views
+1 vote
1 answer

How to create global data sets in R?

You can use the <<- operator for assigning variables ...READ MORE

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

Error saying "Error in x$children[[1]] : subscript out of bounds" while web scrapping

You could try the httr library: library(XML) library(httr) url <- 'http://www.sainsburys.co.uk/shop/gb/groceries/fruit-veg/all-fruit#langId=44&storeId=10151&catalogId=10122&categoryId=12545&parent_category_rn=12518&top_category=12518&pageSize=30&orderBy=FAVOURITES_FIRST&searchTerm' doc <- ...READ MORE

Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
1,846 views
0 votes
2 answers

Why should anyone learn Python instead of R for machine learning?

Machine learning is the latest technology everyone ...READ MORE

Apr 13, 2019 in Data Analytics by SA
• 1,090 points
723 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,513 views
0 votes
1 answer

Can rows be converted into columns in R?

You can use of the R package ...READ MORE

Dec 11, 2018 in Data Analytics by Maverick
• 10,840 points
366 views
0 votes
1 answer

Function to check if matrix empty or not

here is some question of what is ...READ MORE

Oct 29, 2018 in Data Analytics by Maverick
• 10,840 points
2,209 views
+1 vote
1 answer

"subscript out of bounds" error in while executing simple R program

This is caused by trying to access ...READ MORE

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

web scraping using python or R?

In simple words, Python can be a ...READ MORE

Nov 22, 2018 in Data Analytics by Kalgi
• 52,360 points
1,186 views
0 votes
1 answer

Error saying "ERROR: could not find function "dashboardsidebar"" when trying to create dashboard on shiny R

Correct the function name. dashboardSidebar() READ MORE

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

Error saying "Error in install.packages("epiR") : unable to install packages" when trying to install a package

Your system does not contain a personal ...READ MORE

Nov 21, 2018 in Data Analytics by Maverick
• 10,840 points
1,209 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,431 views