Most viewed questions in Data Analytics

0 votes
1 answer

Motion chart in R

A simple motion scatter chart using the ...READ MORE

Nov 3, 2019 in Data Analytics by anonymous
• 33,030 points
787 views
0 votes
1 answer

update dataframe automatically

Hi Gavin, Try web scraping to download the ...READ MORE

Sep 18, 2019 in Data Analytics by anonymous
• 33,030 points
786 views
0 votes
1 answer

Negative Binomial Distribution in R Programming

You can try this: pnbinom(3,2,0.5) sum(dnbinom(0:3,2,0.5)) Here's the output: > pnbinom(3,2,0.5) [1] ...READ MORE

Mar 5, 2019 in Data Analytics by Tyrion anex
• 8,700 points
784 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
784 views
0 votes
1 answer

mysql connection issue in Spark VM

Dear Saravana, Hope you are doing great. We would ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
781 views
0 votes
1 answer

Big Data transformations with R

Dear Koushik, Hope you are doing great. You can ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
781 views
0 votes
1 answer

How to create bins or groups in R?

Use cut functions or group_by function. group_by functions ...READ MORE

Oct 14, 2019 in Data Analytics by kavya
777 views
0 votes
1 answer

Random Walk model in R

A random walk is a simple example ...READ MORE

Jul 10, 2018 in Data Analytics by Sahiti
• 6,370 points
777 views
0 votes
2 answers

Apply function in R

apply Description: “Returns a vector or array or ...READ MORE

Jul 10, 2018 in Data Analytics by zombie
• 3,790 points
776 views
0 votes
1 answer

How do you have 2 different colors in a bar graph, ggplot in where one color for the negatives and positives

Hi@Andris, Once you have the data, you can make the ...READ MORE

Oct 5, 2020 in Data Analytics by MD
• 95,440 points
775 views
+1 vote
1 answer

R programming: Classifying wine dataset

Run the below code, it should work: wineData$taste ...READ MORE

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

How to provide xpath value for web scraping?

Hey Karthik, XPath uses path expressions to select ...READ MORE

Sep 18, 2019 in Data Analytics by anonymous
• 33,030 points
770 views
0 votes
1 answer

Error saying "Error in source("myfirst.R") : myfirst.R:14:2: unexpected '!' 13: 14: ë! ^"

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

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

How to find cumulative total of rows in r?

Calculate intermediate sum and total sum using ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
768 views
0 votes
1 answer

Images do not appear with runtime:shiny

@kalyan Before running the file, create a www ...READ MORE

Sep 24, 2019 in Data Analytics by anonymous
• 33,030 points
767 views
0 votes
1 answer

With the help of tidyverse: how to rename a column to a variable name

With the help of Dplyr: rename function ...READ MORE

Apr 3, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Apr 3, 2018 by DeepCoder786 767 views
0 votes
1 answer

Data slicing using R programming

You can perform data slicing by splitting the ...READ MORE

Jan 9, 2019 in Data Analytics by Tyrion anex
• 8,700 points
766 views
0 votes
1 answer

how do I run this R program on hadoop.

You can use hadoop streaming to read ...READ MORE

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

R Programming error in if condition

Hi. Instead of breaking the line add it ...READ MORE

Aug 26, 2019 in Data Analytics by anonymous
• 33,030 points
762 views
0 votes
1 answer

How many data structures does R language have?

R language has Homogeneous and Heterogeneous data ...READ MORE

Jun 5, 2018 in Data Analytics by zombie
• 3,790 points
762 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
760 views
0 votes
1 answer

How can I select a CRAN mirror in R ?

There are many ways of doing so ...READ MORE

May 9, 2018 in Data Analytics by zombie
• 3,790 points
760 views
0 votes
1 answer

How to save ggplots?

Hi you can save plots using ggsave() Code ...READ MORE

Jul 15, 2019 in Data Analytics by anonymous
• 33,030 points
757 views
0 votes
1 answer

How to create a histogram in R?

Hi@MD, A histogram represents the frequencies of values ...READ MORE

Oct 30, 2020 in Data Analytics by akhtar
• 38,230 points
756 views
0 votes
1 answer

How to create a range of dates in R?

Hey, See the below example, > superstore$Order.Date[1] [1] "2014-11-11" > seq(superstore$Order.Date[1],length.out ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
755 views
0 votes
1 answer

Selection Bias

Selection bias is the bias introduced by the ...READ MORE

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

R Programming error: twitteR OAuthFactory object

You need to install the following packages: install.packages(c('RO ...READ MORE

Jan 11, 2019 in Data Analytics by Tyrion anex
• 8,700 points
753 views
0 votes
0 answers

Error installing mailR package.

Error installing mailR package. Below error in console. ...READ MORE

Sep 3, 2019 in Data Analytics by nitya
751 views
0 votes
1 answer

Mongodb text search in R programming

this example works for me library(mongolite) m <- mongo(db ...READ MORE

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

Concurrent Programming Using R

Concurrent programming has been supported by various ...READ MORE

Jan 9, 2019 in Data Analytics by Tyrion anex
• 8,700 points
746 views
+1 vote
0 answers

Color attribute values in plot - R

Hi, i want to show different colors ...READ MORE

Jul 12, 2019 in Data Analytics by keerthi
745 views
0 votes
0 answers

Split a string and store it in multiple columns from a field in R

How to Split a string and store ...READ MORE

Jun 29, 2019 in Data Analytics by Anand
743 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
742 views
0 votes
1 answer

if - else if - else statement and brackets

When the first if is followed by ...READ MORE

Jun 14, 2022 in Data Analytics by Sohail
• 3,040 points
741 views
0 votes
1 answer

plot map points from a dataframe

Hi Peter, Use below code. leaflet(df) %>% addTiles() %>% ...READ MORE

Sep 17, 2019 in Data Analytics by priya
738 views
0 votes
1 answer

Keras - R programming error

You haven't installed keras in the correct ...READ MORE

Jun 17, 2019 in Data Analytics by Sophie may
• 10,610 points
733 views
0 votes
1 answer

How to create a line chart in R?

Hi@akhtar, A simple line chart is created using ...READ MORE

Oct 30, 2020 in Data Analytics by MD
• 95,440 points
732 views
+2 votes
2 answers

How to handle outliers

There are multiple ways to handle outliers ...READ MORE

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

Navigate from one page to another using R

Use the below functions for navigating between ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
730 views
0 votes
1 answer

Is there a way to terminate an R program without causing an error?

You can make use of the 'browser' ...READ MORE

Jan 10, 2019 in Data Analytics by Sophie may
• 10,610 points
730 views
0 votes
1 answer

Cleaning raw data

Try this using read.fwf d <- read.fwf(textConnection( " ...READ MORE

Nov 13, 2018 in Data Analytics by Ali
• 11,360 points
730 views
+1 vote
1 answer

R errors in eclipse

remove import android.R Then clean and rebuild project. R ...READ MORE

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

How to create a tree like structure from R list/vector?

Hi, puja. Use below function to create a ...READ MORE

Aug 30, 2019 in Data Analytics by anonymous
• 33,030 points
728 views
0 votes
1 answer

Overlap images to create a new picture

Use image_flatten() or image_mosaic() to overlap image over ...READ MORE

Aug 7, 2019 in Data Analytics by anonymous
• 33,030 points
727 views
0 votes
1 answer

Pig - Grunt shell

Dear Narayan, Hope you are doing great. You don't ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
725 views
0 votes
1 answer

Filter using dplyr

@Sagar, use filter followed by condition for ...READ MORE

Sep 10, 2019 in Data Analytics by kiran
724 views
0 votes
1 answer

What is the exact usage of abline() function?

abline function in R used to add ...READ MORE

Sep 19, 2018 in Data Analytics by shams
• 3,670 points
724 views
0 votes
1 answer

What is the paradigm of R language?

R provides features of object-oriented and functional programming ...READ MORE

Jan 10, 2019 in Data Analytics by Sophie may
• 10,610 points
722 views
0 votes
1 answer

R programming: Data Categorization

Try this: wineData$taste <- NA ...READ MORE

Jun 28, 2019 in Data Analytics by Zulaikha
• 910 points
719 views