Most answered questions in Data Analytics

0 votes
1 answer

formatting r output

Use print and paste command to format ...READ MORE

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

Slicing a list using an index vector in r

Use index within [] and provide an ...READ MORE

Nov 2, 2019 in Data Analytics by Cherukuri
• 33,030 points
9,969 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
770 views
+1 vote
1 answer

What is ~ operator in R?

~ operator is used in R for ...READ MORE

Oct 14, 2019 in Data Analytics by mohan
460 views
0 votes
1 answer

How to convert data.frame object to transaction object?

You can either convert a data frame ...READ MORE

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

Error with apriori function.

Hey, you forgot to mention support, confidence ...READ MORE

Oct 14, 2019 in Data Analytics by payal
2,707 views
+1 vote
1 answer

RandomForest Error

If the classifying variable data type is ...READ MORE

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

Error with rbind

Hey, rbind needs the number of columns ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
3,137 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
475 views
0 votes
1 answer

Random Forest Error : Error in y - ymean : non-numeric argument to binary operator

Hey, Convert the Class.variable to factor then it might work. random_forest ...READ MORE

Oct 9, 2019 in Data Analytics by Cherukuri
• 33,030 points
12,393 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
605 views
0 votes
1 answer

Create train and test data from dataset in R

Hi, Use sample or sample.split function to create ...READ MORE

Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
2,978 views
0 votes
1 answer

Read text file and save as csv file using R

hi, Read the text file and save it ...READ MORE

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

How to rename a file using R?

I just found there are 2 functions file.rename() ...READ MORE

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

How to add elements into a list in R?

hey, Add elements into list as below. list = ...READ MORE

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

How to get attribute data from tag using R?

Hi, Use html_attr()/html_attrs() function to extract the attribute ...READ MORE

Sep 30, 2019 in Data Analytics by anonymous
• 33,030 points
635 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,030 points
3,003 views
0 votes
1 answer

Different ways to write into database using R

The below functions are used to update ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
458 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
820 views
+1 vote
1 answer

How to setup any database connection in R?

Here is how you set up a ...READ MORE

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

Show SQL equivalent code of dplyr code in R

show_query() translated dplyr code into sql equivalent ...READ MORE

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

Error with running SQL Query:

Use below code. ofc <- dbGetQuery(db,'select * from ...READ MORE

Oct 1, 2019 in Data Analytics by anonymous
• 33,030 points
828 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,030 points
3,413 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
947 views
0 votes
1 answer

How to create color functions for mappers in lealet?

Hey, Create a function using colorNumeric.Factor/bins. Then call ...READ MORE

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

How to highlight polygon/hovered a region in a map?

Hey, Try this code example to highlight polygon ...READ MORE

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

How to create and call groups in maps?

Groups are used to group a set ...READ MORE

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

How to color categorical data markers?

Hey, Use colorFactor function. Check this example. pal <- colorFactor(c("navy", ...READ MORE

Sep 25, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,135 views
0 votes
1 answer

Save lefalet maps as html output

Use saveWidget to save the output as ...READ MORE

Sep 23, 2019 in Data Analytics by anonymous
• 3,450 points
457 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,831 views
0 votes
1 answer

How to add only label or popup withpout markers in a map?

Hi, @ch Use addLabelOnlyMarkers( ) to add labels ...READ MORE

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

Hide and show labels by default in maps

Hi, You need to just add an attribute ...READ MORE

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

Pop up always visible without clicking on the marker in leaflet

@Ch, Pop-up cannot be enabled by default. Another ...READ MORE

Sep 23, 2019 in Data Analytics by Cherukuri
• 33,030 points
4,011 views
0 votes
1 answer

Add variable size and color of circle marker depending on condition

Hey, Give conditions for color or radius within ...READ MORE

Sep 23, 2019 in Data Analytics by Cherukuri
• 33,030 points
7,061 views
0 votes
1 answer

Create markerclusters in leaflet

Hi, It's quite simple, add below snippet along ...READ MORE

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

How to create icons for markers in leaflet?

Hi @ch, Create an icon use makeicon function ...READ MORE

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

How to create clusers in leaflet?

Hey! Try using marker cluster. See this post, its ...READ MORE

Sep 23, 2019 in Data Analytics by anonymous
• 3,450 points
519 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,951 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,339 views
0 votes
1 answer

How to save leaflet object as an image?

Yes, you can save leaflet objects as ...READ MORE

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

How to add legend or any text on the map in leaflet?

See below example, > p = colorFactor(palette = ...READ MORE

Oct 28, 2019 in Data Analytics by anonymous
• 33,030 points
8,439 views
0 votes
1 answer

Navigate from one page to another using R

Use the below functions for navigating between ...READ MORE

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

Download file from website using web scraping

Hi, Follow the below steps: 1. Use rvest package ...READ MORE

Sep 20, 2019 in Data Analytics by rishabh
5,692 views
0 votes
1 answer

How to add external markers in maps?

Use external markers by creating icons using ...READ MORE

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

plot map points from a dataframe

Hi Peter, Use below code. leaflet(df) %>% addTiles() %>% ...READ MORE

Sep 17, 2019 in Data Analytics by priya
736 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,894 views
0 votes
1 answer

How to provide xpath value for web scraping?

Hey Karthik, XPath uses path expressions to select ...READ MORE

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

update dataframe automatically

Hi Gavin, Try web scraping to download the ...READ MORE

Sep 18, 2019 in Data Analytics by anonymous
• 33,030 points
783 views