Most viewed questions in Data Analytics

0 votes
1 answer

How can I change font size and direction of axes text in ggplot2 ?

You can try theme(): Library(ggplot2) a <- data.frame(x=gl(10, 1, ...READ MORE

May 30, 2018 in Data Analytics by zombie
• 3,790 points
4,484 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,461 views
0 votes
1 answer

How to convert a continuous variable to discrete variable and vice versa in R?

Discretize function convert a continuous variable into ...READ MORE

Nov 4, 2019 in Data Analytics by rajeev
4,381 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,840 points
4,367 views
0 votes
1 answer

How can I differentiate between lapply and sapply ?

If the programmers want the output to ...READ MORE

Jun 12, 2018 in Data Analytics by zombie
• 3,790 points
4,360 views
0 votes
1 answer

Error saying "Error in open.connection(x, "rb") : Timeout was reached:"

Hey @Ali, even I had faced the ...READ MORE

Nov 21, 2018 in Data Analytics by Maverick
• 10,840 points
4,350 views
0 votes
0 answers

How to use the where clause in R programming?

I'm trying to implement a where clause ...READ MORE

Dec 24, 2018 in Data Analytics by Sophie may
• 10,620 points
4,327 views
0 votes
1 answer

How to reduce the height of valueBox in shiny R?

Add this line before using your vlaueBoxes tags$head(tags$style(HTML(".small-box ...READ MORE

Dec 4, 2018 in Data Analytics by Haseeb
4,297 views
0 votes
2 answers

R: Error in sort.int(x, na.last = na.last, decreasing = decreasing, ...)

Use unlist function to convert the list ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,050 points
4,251 views
+1 vote
2 answers

What is the difference between correlation and covariance?

Correlation and Co-variance both are used as ...READ MORE

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

What is Selection Bias?

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

Aug 20, 2018 in Data Analytics by Abhi
• 3,720 points
4,249 views
+1 vote
1 answer

How to add videos in a shiny R dashboard?

Its pretty simple, try this: server.r library(shiny) shinyServer(function(input, output, session) ...READ MORE

Dec 4, 2018 in Data Analytics by Haseeb
4,239 views
+1 vote
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,840 points
4,238 views
0 votes
1 answer

Unload a package without restarting R

Try the below option: detach("package:vegan", unload=TRUE) NOTE: You can ...READ MORE

Apr 17, 2018 in Data Analytics by DataKing99
• 8,250 points
4,221 views
0 votes
1 answer

Summarize with a condition

You can provide condition to summarize using ...READ MORE

Aug 7, 2019 in Data Analytics by anonymous
• 33,050 points
4,154 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,129 views
0 votes
1 answer

How to add labels on bars in bar chart in ggplot?

Use geom_text() to add labels on the ...READ MORE

Aug 20, 2019 in Data Analytics by anonymous
• 33,050 points
4,097 views
0 votes
1 answer

Replace comma with a period in data cleaning using R

You can use the scan function in ...READ MORE

Nov 13, 2018 in Data Analytics by Maverick
• 10,840 points
4,085 views
0 votes
1 answer

How to find out the sum/mean for multiple variables per group in R?

You can use the reshape2 package for ...READ MORE

Apr 12, 2018 in Data Analytics by DataKing99
• 8,250 points
4,082 views
0 votes
1 answer

How can I calculate mean per group in a data.frame?

You can use aggregate function for calculating ...READ MORE

May 24, 2018 in Data Analytics by zombie
• 3,790 points
4,050 views
0 votes
1 answer

Showing percentage instead of counts in a bar plot - ggplot2 - R

Load the 'scales' package first, which gives ...READ MORE

May 29, 2018 in Data Analytics by Bharani
• 4,660 points
4,036 views
+1 vote
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(d ...READ MORE

Nov 16, 2018 in Data Analytics by Maverick
• 10,840 points
3,997 views
0 votes
1 answer

Element wise multiplication in R

In R the simple vector multiplication gives ...READ MORE

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

How to change y axis max in time series using R?

The axis limits are being set using ...READ MORE

Apr 3, 2018 in Data Analytics by Sahiti
• 6,370 points
3,972 views
0 votes
1 answer

Change ggplot2 default color palette

If the scale is continuous, then you can ...READ MORE

Aug 20, 2019 in Data Analytics by anonymous
• 33,050 points
3,969 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,840 points
3,967 views
0 votes
1 answer

Dynamically select element from a list and work with it - Shiny R

Follow these steps: Import the data into R Check ...READ MORE

Dec 5, 2018 in Data Analytics by Maverick
• 10,840 points
3,945 views
+1 vote
1 answer

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

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

Nov 29, 2018 in Data Analytics by Maverick
• 10,840 points
3,935 views
0 votes
1 answer

How to connect to mysql database from rstudio?

Connect to the database as below. install.packages("odbc") db = ...READ MORE

Oct 7, 2019 in Data Analytics by anonymous
• 33,050 points
3,898 views
0 votes
1 answer

Aligning title in ggplot2

You can use the theme layer to ...READ MORE

Apr 27, 2018 in Data Analytics by Bharani
• 4,660 points

edited Jun 9, 2020 by MD 3,898 views
0 votes
1 answer

How to use hclust function?

hclust performs hierarchical cluster analysis on a ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,050 points
3,893 views
0 votes
1 answer

Remove messages from R markdown report

All you have to do is, set ...READ MORE

May 14, 2018 in Data Analytics by Bharani
• 4,660 points
3,892 views
0 votes
1 answer

Error: package or namespace load failed for ‘ggplot2’ - R

Radha, Try restarting the session. the same ...READ MORE

Aug 30, 2019 in Data Analytics by anonymous
• 33,050 points
3,889 views
0 votes
1 answer

Read command line parameters from an R script

Here's an example to explain : Two files ...READ MORE

Apr 17, 2018 in Data Analytics by kappa3010
• 2,090 points
3,800 views
0 votes
1 answer

How ‘breaks’ and ‘ cut’ works in R?

@ch, Cut divides the range of x into ...READ MORE

Oct 14, 2019 in Data Analytics by rohan
3,774 views
0 votes
1 answer

How to group all columns exculding a single column?

You can either use group_by or group_by_at Using ...READ MORE

Apr 12, 2018 in Data Analytics by Sahiti
• 6,370 points
3,759 views
0 votes
1 answer

Add radio buttons on shiny R dashboard

Yess of course that's possible. ShinyR provides ...READ MORE

Dec 5, 2018 in Data Analytics by Maverick
• 10,840 points
3,717 views
+3 votes
1 answer

Error in library(cowplot) : there is no package called ‘cowplot’

Hi@akhtar, By default, the cowplot module is not ...READ MORE

Jun 10, 2020 in Data Analytics by MD
• 95,460 points
3,713 views
0 votes
1 answer

How to limit output of a dataframe in R?

For randomly sampling a row/cell where a ...READ MORE

Apr 18, 2018 in Data Analytics by kappa3010
• 2,090 points
3,691 views
0 votes
1 answer

Working of ggplot scale_continuous 'expand' argument

According to the document if you set limits manually, ...READ MORE

Apr 13, 2018 in Data Analytics by DataKing99
• 8,250 points
3,686 views
0 votes
1 answer

9) Subscriber Data analysis includes __________ (select all applicable)

Option d)  Subscriber profiling, upselling and innovative tariffs Master ...READ MORE

Dec 2, 2020 in Data Analytics by Gitika
• 65,770 points
3,650 views
0 votes
1 answer

How to create a new table in database from R?

Use dbGetQuery to create a table by ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,050 points
3,649 views
0 votes
1 answer

How to select columns containing specific text in R?

Hi, You can use the select method to extract ...READ MORE

Aug 7, 2020 in Data Analytics by MD
• 95,460 points
3,611 views
0 votes
1 answer

List all dataframes in R session.

Try this. for(x in ls()){   if("data.frame" %in% ...READ MORE

Nov 4, 2019 in Data Analytics by anonymous
• 33,050 points
3,605 views
0 votes
1 answer

Error in effect_plot(model, pred = "Illiteracy") : could not find function "effect_plot"

Hi@akhtar, I think you don't have jtools package ...READ MORE

Sep 16, 2020 in Data Analytics by MD
• 95,460 points
3,600 views
0 votes
1 answer

Create 3D Pie Chart in R.

Hi@akhtar, A pie chart with 3 dimensions can ...READ MORE

Oct 30, 2020 in Data Analytics by MD
• 95,460 points
3,562 views
0 votes
1 answer

Error in library("XML") : there is no package called ‘XML’

Hi@akhtar, You can find some packages pre-installed in ...READ MORE

Oct 29, 2020 in Data Analytics by MD
• 95,460 points
3,549 views
0 votes
1 answer

Extract text from image in R

Try below code to fetch the image ...READ MORE

Aug 7, 2019 in Data Analytics by anonymous
• 33,050 points
3,546 views
+1 vote
2 answers

Keras TypeError: 'int' not iterable

Long Short Term Memory networks are implemented ...READ MORE

Jun 17, 2019 in Data Analytics by Sophie may
• 10,620 points
3,541 views