Trending questions in Data Analytics

+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,884 views
0 votes
1 answer

How can I append rows to an R data frame?

Consider a dataSet i.e cicar(present under library ...READ MORE

May 9, 2018 in Data Analytics by zombie
• 3,790 points
10,777 views
+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,220 points
667 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
1,287 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,456 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,726 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,330 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,350 points
1,033 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,620 points
716 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,350 points
1,442 views
0 votes
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,620 points
696 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,350 points
2,577 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
965 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
1,293 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,313 views
+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
933 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,620 points
728 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
648 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
664 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,580 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
842 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,206 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,463 views
0 votes
1 answer

How to create a box-plot using “plotly” in R?

You can use this command to create ...READ MORE

Jul 4, 2018 in Data Analytics by CodingByHeart77
• 3,750 points
7,817 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
1,103 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
840 views
+1 vote
1 answer
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,350 points
2,356 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
1,080 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
2,213 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
889 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
2,049 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
779 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
979 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
670 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,378 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,350 points
2,534 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
1,038 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,350 points
1,576 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,533 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,262 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,450 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
565 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,772 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,499 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,350 points
2,368 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,515 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,697 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
551 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
1,121 views