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

Create a new string from existing strings in different variables

Its quite simple, Use paste function as ...READ MORE

Oct 31, 2019 in Data Analytics by Cherukuri
• 33,030 points
708 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
774 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
595 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
730 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
437 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,532 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,851 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
947 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,725 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
479 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,989 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
475 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,870 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,402 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
403 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
974 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,070 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
582 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
467 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,746 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
2,011 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
491 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,856 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
487 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
514 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
887 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
478 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,935 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
419 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
521 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
431 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
383 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
821 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,525 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,687 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,987 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
621 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
492 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
518 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,689 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,219 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,778 views
0 votes
1 answer

R Shiny Error: evaluation nested too deeply: infinite recursion / options(expressions=)?

Hi Kalpana, This error is due to ...READ MORE

Aug 21, 2019 in Data Analytics by anonymous
• 33,030 points
2,901 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,823 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
425 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,702 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,822 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
844 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
469 views