Trending questions in Data Analytics

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
872 views
0 votes
1 answer

Display labels within pie chart

See below example- df <- data.frame( name ...READ MORE

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

How does paste function work in R?

Paste function concatenates vectors together. Syntax: paste(v1,v2,sep = ...READ MORE

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

Add list elments recursively

You cannot use the sum function on ...READ MORE

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

Edit list elements when condition is met

You can use regular if condition with ...READ MORE

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

How to add leading zeros in R?

There are several solutions to this. One of ...READ MORE

Apr 30, 2018 in Data Analytics by Sahiti
• 6,370 points
23,927 views
0 votes
1 answer

What is a regex?

A regular expression, regex or regexp is ...READ MORE

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

How to use regular expressions in R?

Set of operators to use for regular ...READ MORE

Nov 2, 2019 in Data Analytics by anonymous
• 33,030 points
436 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
890 views
0 votes
1 answer

Reduce markers overlapping in maps

Hey, You can either reduce the font size ...READ MORE

Sep 23, 2019 in Data Analytics by anonymous
• 3,450 points
1,779 views
0 votes
1 answer

Truncate numeric values without round off

You can either use substring function or ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
368 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,030 points
3,651 views
0 votes
1 answer

Difference between label and popup in addmarkers() in leaflet

Hey, its quite simple. Label in leaflet displays ...READ MORE

Sep 20, 2019 in Data Analytics by rajitha
1,919 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,030 points
3,812 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
918 views
0 votes
1 answer

How to combine 2 fields in a dataframe to create a new field?

Use paste command or append function to ...READ MORE

Oct 31, 2019 in Data Analytics by Cherukuri
• 33,030 points
427 views
0 votes
0 answers

How to visualize the randomForest model in R?

How to visualize the randomForest model in ...READ MORE

Oct 22, 2019 in Data Analytics by ch
• 3,450 points
519 views
+1 vote
0 answers

How to zip a folder with r image files from RStudio?

How to zip a folder with r ...READ MORE

Oct 10, 2019 in Data Analytics by ch
• 3,450 points
986 views
0 votes
2 answers

How to set working directory to source file location in R?

Hi,  I'm not sure about the command but you ...READ MORE

Aug 20, 2019 in Data Analytics by Cherukuri
• 33,030 points
13,386 views
0 votes
1 answer

How to crop white space around image(Magick) in R?

@sreenivas, Use image_trim to crop the extra part of ...READ MORE

Oct 28, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,682 views
+1 vote
1 answer

map data not yet available

It could be due to the limited ...READ MORE

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

plot function - hide x/y - axis points

hey @ch, Use the below attribute to hide ...READ MORE

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

How to check installed packages from r source?

Use installed.packages() or find.package() function and pass the ...READ MORE

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

How to set data type of columns while reading from source?

@ch, Add colClasses attribute to read the statement ...READ MORE

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

R Shiny: Select input choice inside server function.

Use renderUI function within the server function ...READ MORE

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

plot function - hide all ticks

hey @ch, Use below attribute to hide all ...READ MORE

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

Manage length of field values

Hi, Use str_pad() function to format the length ...READ MORE

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

How to edit the data source from R?

Use edit function like below and pass ...READ MORE

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

Differences between html_nodes( ) and html_node( )?

Pallava, both the functions return nodes from ...READ MORE

Sep 17, 2019 in Data Analytics by rajeev
1,873 views
0 votes
1 answer

Do we need to create vectors to create arrays in R?

Yes, you need vectors to create arrays. Arrays take vectors in ...READ MORE

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

How to create a weighted data set?

HI @ch, Create a list of elements and ...READ MORE

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

Check if a website permits web scraping - R

Vinutha, While doing web scraping its necessary ...READ MORE

Sep 17, 2019 in Data Analytics by aditya
1,840 views
0 votes
1 answer

List should be atomic

@ch, A few functions only work with an ...READ MORE

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

Sunburst charts using plotly

See below example library(plotly) p <- plot_ly( labels ...READ MORE

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

How to add tooltips to ggplot object?

@ashish, you can use ggplotly package to ...READ MORE

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

Donut chart - R

@Kruthi, Refer to this blog on how to ...READ MORE

Oct 28, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,617 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
719 views
0 votes
1 answer

How to display randomforest object?

Refer to this article here, https://stats.stackexchange.com/questi ...READ MORE

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

How to create heat maps in R?

Use heatmap() to create heatmaps. > heatmap(as.matrix(mtcars)) See below ...READ MORE

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

What are the different ways to manage NA's in data?

A few functions to manage NA are ...READ MORE

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

Add secondary axis as a dual axis in R plot

You can add a secondary axis in ...READ MORE

Nov 4, 2019 in Data Analytics by keerthi
1,778 views
0 votes
1 answer

Check if number is armstrong number or not

Hey, # take input from the user num = ...READ MORE

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

How to find the difference wrt previous value in list/vector?

diff() function returns the difference between numbers ...READ MORE

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

K Means using elbow method

Elbow method allows the user to know ...READ MORE

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

compare actual values vs predicted values in decision tree

You can compare test data using table() ...READ MORE

Aug 25, 2019 in Data Analytics by Cherukuri
• 33,030 points
2,637 views
0 votes
1 answer

How to provide names for list elments in r?

There are 2 ways to add names ...READ MORE

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

Difference between list(1:5) and list(1,2 ...5) in R.

It's very simple. list(1:4) creates a single element(vector) whereas ...READ MORE

Oct 14, 2019 in Data Analytics by rajeev
433 views
0 votes
0 answers

How to get the value passed through url from one page to another in R?

How to get the value passed through ...READ MORE

Oct 16, 2019 in Data Analytics by ch
• 3,450 points
383 views
0 votes
1 answer

Change the order of legend values in a plot in R

@prardhana, Use scale_fill/color/size_discrete/contin....(labels = c()). compare both to see ...READ MORE

Nov 4, 2019 in Data Analytics by payal
1,766 views
+1 vote
1 answer

Write r output into table (in database)

Use dbWriteTable () function and set overwrite ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
779 views