Trending questions in Data Analytics

+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 in Data Analytics by anonymous
106 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 6, 2018 in Data Analytics by Maverick
• 10,040 points
96 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,040 points
96 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 in Data Analytics by anonymous
68 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 6, 2018 in Data Analytics by Maverick
• 10,040 points
50 views
0 votes
2 answers

How to add sliderbars in a shiny R dashboard?

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

Dec 4, 2018 in Data Analytics by Kalgi
• 45,910 points
92 views
0 votes
1 answer

Error saying " cannot open the connection" when trying to install a package in R

Try install.packages(“package_name”, repos="http://cran.us.r-p ...READ MORE

Nov 26, 2018 in Data Analytics by Maverick
• 10,040 points
476 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 in Data Analytics by SA
• 1,030 points
115 views
0 votes
1 answer

problem with tabitems in shiny R

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

Nov 29, 2018 in Data Analytics by Maverick
• 10,040 points
333 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 5, 2018 in Data Analytics by Maverick
• 10,040 points
74 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 5, 2018 in Data Analytics by Maverick
• 10,040 points
69 views
0 votes
1 answer

I'm trying to start rattle on R Studio and end up with an error

You need the package RGtk2 for rattle to ...READ MORE

Nov 26, 2018 in Data Analytics by Maverick
• 10,040 points
461 views
0 votes
1 answer

Error saying "could not find function dashboardPage" in shiny R

Include this line in the code: Library(shinydashboard) READ MORE

Nov 28, 2018 in Data Analytics by Maverick
• 10,040 points
308 views
0 votes
1 answer

Error saying "Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ"

Make sure is a factor time <- as.factor(c("pm", ...READ MORE

Nov 9, 2018 in Data Analytics by Maverick
• 10,040 points
1,130 views
0 votes
1 answer

Error saying "no applicable method for 'meta' applied to an object of class" when trying to create TermDocumentMatrix

Heyy @Hannah, the following line of code ...READ MORE

Nov 6, 2018 in Data Analytics by Kalgi
• 45,910 points
1,203 views
0 votes
1 answer

Error saying "Error in map_df(1, function(i) { : could not find function "map_df"" in R

Make sure you’ve installed the package purr ...READ MORE

Nov 20, 2018 in Data Analytics by Maverick
• 10,040 points
559 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 29, 2018 in Data Analytics by Maverick
• 10,040 points
143 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 28, 2018 in Data Analytics by Maverick
• 10,040 points
146 views
0 votes
1 answer

How do I add Icons to my messages on my dashboard which I’m creating using shiny r?

Try something like this: dashboardHeader(title="Edureka", dropdownMenu type = "message", messageItem(from = ...READ MORE

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

How do I get notifications on my dashboard using shiny R?

Try this, its one of the possible ...READ MORE

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

Unable to see histogram even though its been created without any errors in shiny R

In your server.R 4th line. Replace it ...READ MORE

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

issue with dashboardSidebar function using shiny R

You can use the function sidebarMenu function ...READ MORE

Nov 29, 2018 in Data Analytics by Maverick
• 10,040 points
54 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 28, 2018 in Data Analytics by Maverick
• 10,040 points
85 views
0 votes
1 answer

What is shiny R?

Shiny is an open source R package that ...READ MORE

Nov 28, 2018 in Data Analytics by Maverick
• 10,040 points
69 views
0 votes
2 answers

How to arrange a data set in ascending order based on a variable?

In your case it'll be, orderedviews = arrange(movie_views, ...READ MORE

Nov 27, 2018 in Data Analytics by Kalgi
• 45,910 points
54 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(“ ...READ MORE

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

Error saying "EXPR must be a length 1 vector" when trying to use the switch functionality

You can use the ifelse function: df$Value <- ifelse(df ...READ MORE

Nov 16, 2018 in Data Analytics by Maverick
• 10,040 points
552 views
0 votes
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,040 points
586 views
0 votes
2 answers

What is data science?

Data Science is the practice of: Asking questions (formulating hypothesis), ...READ MORE

Aug 2, 2018 in Data Analytics by Anmol
• 3,620 points
51 views
0 votes
1 answer

Error saying "Error in install.packages(rvest) : object 'rvest' not found" when trying to install a package in R

In this line, Install.packages(“rvest”) Add rvest inside double ...READ MORE

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

How do I get different distributions of our dataset in R?

There are multiple ways of getting this. ...READ MORE

Nov 26, 2018 in Data Analytics by Maverick
• 10,040 points
70 views
0 votes
1 answer

Is there a way to display correlation in graphical manner in R?

Ans There are multiple ways of getting this. ...READ MORE

Nov 26, 2018 in Data Analytics by Maverick
• 10,040 points
48 views
0 votes
1 answer

Convert java code to R code

You can rjava package for this purpose. rJava is ...READ MORE

Nov 16, 2018 in Data Analytics by Maverick
• 10,040 points
476 views
0 votes
2 answers

Recommender Systems

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

Mar 29 in Data Analytics by JAY SHAH
157 views
0 votes
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
• 45,910 points
235 views
0 votes
1 answer

web scraping using python or R?

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

Nov 21, 2018 in Data Analytics by Kalgi
• 45,910 points
178 views
0 votes
1 answer

Error saying " Failed to connect to database: Error: Lost connection to MySQL server at 'handshake"

try this: library(RODBCext) sqlString <- "Select * from yourtable ...READ MORE

Nov 12, 2018 in Data Analytics by Maverick
• 10,040 points
550 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,040 points
653 views
0 votes
1 answer

Error:Shadow graphics device error: r error 4 (R code execution error) when trying to use plot() and ggplot()

Its working perfectly fine with R version ...READ MORE

Nov 8, 2018 in Data Analytics by Maverick
• 10,040 points
670 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 20, 2018 in Data Analytics by Maverick
• 10,040 points
127 views
0 votes
1 answer

How do I convert data frame to csv file in R?

Hey @Ali, its very simple one line ...READ MORE

Nov 21, 2018 in Data Analytics by Maverick
• 10,040 points
86 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

Nov 21, 2018 in Data Analytics by Kalgi
• 45,910 points
76 views
0 votes
1 answer

Different ways to scrap data

Different ways to scrap data off the ...READ MORE

Nov 21, 2018 in Data Analytics by Kalgi
• 45,910 points
63 views
0 votes
1 answer

web sracping using R

Hey @Ali, You can use the rvest ...READ MORE

Nov 21, 2018 in Data Analytics by Kalgi
• 45,910 points
63 views
0 votes
1 answer

Error saying "Error: object 'packages' not found" when trying to web scrap using r

Hey @Ali, Its a very silly mistake. ...READ MORE

Nov 20, 2018 in Data Analytics by Maverick
• 10,040 points
100 views
0 votes
0 answers

Error saying "could not find function "html_text"" when using html_text function in R

I'm trying to web scrap a page ...READ MORE

Nov 20, 2018 in Data Analytics by Ali
• 10,440 points
135 views
0 votes
1 answer

Error saying cannot open file 'file.pdf' when trying to save a plot in ggplot

You could try adding the following line ...READ MORE

Nov 9, 2018 in Data Analytics by Maverick
• 10,040 points
554 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,040 points
282 views
0 votes
1 answer

How do I make a parameter dynamic on the url while webscraping?

Just add %d to the parameter you ...READ MORE

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

Error saying "'names' attribute [27] must be the same length as the vector [21]"

When you end up with this error ...READ MORE

Nov 12, 2018 in Data Analytics by Maverick
• 10,040 points
383 views