Trending questions in Data Analytics

+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
1,020 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,667 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
1,045 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,996 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
6,065 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,656 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
1,299 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,340 points
2,895 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
1,100 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,340 points
1,239 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,647 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
1,251 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
1,231 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,050 points
908 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,778 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,423 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
872 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,423 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,340 points
2,016 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
2,263 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
1,230 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,399 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,875 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,353 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
1,048 views
+1 vote
1 answer
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,340 points
2,844 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.example.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,457 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,340 points
2,570 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
927 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,633 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,563 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,258 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
990 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,785 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
1,174 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,821 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,832 views
0 votes
1 answer

Change IP address on RStudio

The default is 0.0.0.0, but if you ...READ MORE

Nov 2, 2018 in Data Analytics by Maverick
• 10,840 points
2,622 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
836 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,445 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,340 points
2,602 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,932 views
0 votes
1 answer

Error saying "Error in sprintf("%x", 2151028214):invalid format '%x'; use format %f, %e, %g or %a for numeric objects"

gcc : format ‘%x’ expects an argument ...READ MORE

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

How can I convert a factor variable to numeric in R ?

A factor variable can be converted to ...READ MORE

Sep 19, 2018 in Data Analytics by shams
• 3,670 points
4,458 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
770 views
0 votes
1 answer

Lot of errors when trying to install R package "igraph"

change your ~/.R/Makevars file as C=gcc-5 CXX=g++ CXX1X = g++-5 CFLAGS = ...READ MORE

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

How to segment documents into phrases in text mining using R?

You can do this in R using ...READ MORE

Nov 15, 2018 in Data Analytics by sandeep
• 260 points
1,848 views
0 votes
1 answer

Finding the nth highest value in a vector or a data-frame column

sort(x,T)[n] Here, 'x' is the data-frame/vector and 'n' ...READ MORE

May 31, 2018 in Data Analytics by Bharani
• 4,660 points
9,186 views
0 votes
1 answer

Error with shortest.path function in R

you have a directed graph. The shortest.paths function will ...READ MORE

Nov 12, 2018 in Data Analytics by Maverick
• 10,840 points
2,060 views