Most viewed questions in Data Analytics

0 votes
1 answer

R language has several packages for solving a problem. How do you make a decision on which one is the best to use?

CRAN package ecosystem has more than 6000 ...READ MORE

Jun 5, 2018 in Data Analytics by zombie
• 3,790 points
977 views
0 votes
1 answer

Steps to evaluate Linear Regression in R

 These are sequential steps which need to ...READ MORE

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

What does the sink function do in R?

sink diverts R output to a connection ...READ MORE

May 24, 2019 in Data Analytics by Chandu
965 views
0 votes
1 answer

Changing the column type from numeric to factor - R

You can use the as.factor() function for ...READ MORE

May 8, 2018 in Data Analytics by Bharani
• 4,660 points
965 views
0 votes
1 answer

Overfitting vs Underfitting

In statistics and machine learning, one of ...READ MORE

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

Whats the difference between withCallingHandlers and trycatch?

tryCatch withCallingHandlers Program execution breaks and continues with the first expression ...READ MORE

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

What is the difference between corrgram and corrplot?

Differences - Input - corrgram takes a dataset ...READ MORE

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

R programming: Missing value error

You can achieve this by wrapping isTRUE() around your if-condition: for ...READ MORE

Jan 24, 2019 in Data Analytics by Sophie may
• 10,610 points
951 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
951 views
+1 vote
1 answer

How to create polygons around states in leaflet?

Use addPolygons() to create polygons in a ...READ MORE

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

cant open a json file in r

You can use the package jsonlite to read ...READ MORE

Nov 4, 2019 in Data Analytics by pallavi
948 views
0 votes
1 answer

What are the different types of input for parameters in rmarkdown?

There are different types of inputs that ...READ MORE

Jul 31, 2019 in Data Analytics by Cherukuri
• 33,030 points
947 views
0 votes
1 answer

What is a chi Squared value?

The chi-squared statistic is a single number that tells ...READ MORE

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

R programming: Flip coin simulation

Make use of the ggplot2 package. Start by installing and ...READ MORE

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

Adding values of common columns in pandas dataframe

Result = Set1.add(Set2)   x   y 0  70  ...READ MORE

May 30, 2018 in Data Analytics by Bharani
• 4,660 points
939 views
0 votes
1 answer

R: Highlight the map portion where zoomed or viewing.

@ch, Use the minimap to show a side ...READ MORE

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

How to combine a list of data frames into one data frame?

Use bind_rows() from the dplyr package: bind_rows(list_of_dataframes, .id ...READ MORE

Dec 17, 2020 in Data Analytics by Gitika
• 65,910 points
926 views
0 votes
1 answer

In a dpylr pipline how to use sample and seq?

For avoiding rowwise(), I prefer to use ...READ MORE

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

edited Jun 9, 2020 by Gitika 926 views
0 votes
1 answer

How to order bars in a bar graph using ggplot2?

The key to ordering is to set ...READ MORE

Jun 1, 2018 in Data Analytics by DataKing99
• 8,240 points
925 views
0 votes
1 answer

How can I get type of all variables in R?

It is a easy task and one ...READ MORE

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

How can I add x and y axis labels in ggplot2 ?

# Load a dataset(to work with) # We’ll ...READ MORE

May 16, 2018 in Data Analytics by zombie
• 3,790 points
921 views
+1 vote
1 answer

Error saying "The following signatures couldn't be verified because the public key is not available: NO_PUBKEY"

Try this: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ...READ MORE

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

Error "Object Concentration not found"

Hi Sanju, is the abc data frame created in ...READ MORE

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

Creating barplot with standard errors plotted in R

For df1 plot # Group data by when ...READ MORE

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

How to sort substring from a dataframe

First, extract the substring from the data ...READ MORE

Nov 4, 2019 in Data Analytics by Cherukuri
• 33,030 points
914 views
0 votes
1 answer

Is a GUI available for some basic csv file edits?

You can have a look at this csved ...READ MORE

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

% of nulls for each column in the dataset - R

Use code as below -  lapply(air,function(x) { length(which(is ...READ MORE

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

Drop rows on condition from dataframe/dataset

Use code as below dataframe[which(dataframe$sales >= median(dataframe$sales)),] or ...READ MORE

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

What is the difference between rnorm and runif functions ?

rnorm function generates "n" normal random numbers ...READ MORE

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

Is there any easy way to fill in missing data?

You can try the following code: First, you ...READ MORE

Jun 20, 2018 in Data Analytics by DataKing99
• 8,240 points
907 views
0 votes
1 answer

How do I make a matrix from a list of vectors in R?

Suppose l1 and l2 are my vectors, li = ...READ MORE

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

Create vector matrix of movie ratings using R project?

Why do'nt you try the dcast function, in the reshape2 package. d ...READ MORE

Jun 30, 2018 in Data Analytics by anonymous
901 views
0 votes
1 answer

Read from database and store in R as dataframe

Your code would fetch you a MySQL ...READ MORE

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

How to achieve pivot like data using tidyverse library in R?

You need not spread twice, if you ...READ MORE

Apr 4, 2018 in Data Analytics by kappa3010
• 2,090 points
888 views
0 votes
1 answer

Can someone resolve this problem

Hi@Abhirup, Your dataset contains a string value. You ...READ MORE

Jul 9, 2020 in Data Analytics by MD
• 95,440 points
887 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
883 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 21, 2018 in Data Analytics by Maverick
• 10,840 points
883 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
880 views
0 votes
1 answer

What are the different ways of writing into file from R?

Hi Payal, These are the ways to write text ...READ MORE

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

Using CMD Windows to execute R language

So, Command line arguments can't be directly ...READ MORE

Jan 14, 2019 in Data Analytics by Sophie may
• 10,610 points
879 views
+1 vote
4 answers

Which is the best r package used to scrap web pages?

You can use rvest or Rselenium package. READ MORE

Feb 13, 2019 in Data Analytics by Marv
878 views
0 votes
1 answer

What if we have 2 columns with possible na rows?

Hi, You can do this in multiple ways. ...READ MORE

Oct 23, 2020 in Data Analytics by MD
• 95,440 points
877 views
0 votes
1 answer

Left Join and Right Join using "dplyr"

The below is the code to perform ...READ MORE

Mar 27, 2018 in Data Analytics by Bharani
• 4,660 points
871 views
0 votes
1 answer

How to deploy shiny app to shinyapps.io?

There are 2 ways to deploy shiny ...READ MORE

Nov 4, 2019 in Data Analytics by Cherukuri
• 33,030 points
869 views
0 votes
1 answer

How can I list all the data sets available in all R packages?

You can use the below line of ...READ MORE

Sep 7, 2018 in Data Analytics by zombie
• 3,790 points
869 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
• 52,360 points
864 views
0 votes
2 answers

Transforming a key/value string into distinct rows in R

We would start off by loading the ...READ MORE

Mar 26, 2018 in Data Analytics by Bharani
• 4,660 points
863 views
0 votes
1 answer

How to access the last value from a vector in R?

Hi@akhtar, You can use the tail function in ...READ MORE

Oct 30, 2020 in Data Analytics by MD
• 95,440 points
861 views
0 votes
1 answer

Shiny r ,I'm doing a dashboard and I can not replace in the table below the name of the column by choosing the selectinput.

Hi, When you want to change any input ...READ MORE

Aug 19, 2019 in Data Analytics by anonymous
• 33,030 points
859 views
0 votes
2 answers

Error with installing ggplotly.

@bobby, uninstall Rtools and reinstall Rtools with ...READ MORE

Aug 30, 2019 in Data Analytics by anonymous
• 33,030 points
858 views