Trending questions in Data Analytics

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
745 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,940 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
24,028 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
707 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
534 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
420 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
462 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
920 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,823 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
450 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,687 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,841 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,945 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
380 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,447 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
558 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
939 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
444 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
1,023 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,331 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,710 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
466 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,824 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
487 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
454 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,927 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
450 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
844 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
496 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
386 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,890 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
410 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
352 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,491 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,962 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,648 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
762 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
598 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
469 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
495 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,640 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,166 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,793 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,671 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
388 views
+1 vote
2 answers

Locating row index of a column which has the maximum value - R

Hi, Nirvana You can also try this. which(iris$Sepal.Length == ...READ MORE

Aug 21, 2019 in Data Analytics by anonymous
• 33,030 points
12,708 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
450 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,792 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
813 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
443 views