Trending questions in Data Analytics

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,981 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
994 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,528 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
572 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
582 views
0 votes
1 answer

Read table from webpage and convert it into dataframe

Hi Kalyan, Use html_table to create tables from ...READ MORE

Sep 17, 2019 in Data Analytics by prajwal
1,745 views
+1 vote
1 answer

In R programming language, how do I export data in .txt?

See this image for ways to export ...READ MORE

Oct 11, 2019 in Data Analytics by ashwini
677 views
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
667 views
0 votes
1 answer

create data.frame with random numbers in R

First create a matrix with random numbers ...READ MORE

Sep 24, 2019 in Data Analytics by Debasmita Das
3,099 views
+1 vote
2 answers

What is the difference between LDA and PCA for dimensionality reduction?

Principal Component Analysis (PCA) is an unsupervised ...READ MORE

Mar 7, 2019 in Data Analytics by Seema
• 140 points
14,710 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
667 views
0 votes
1 answer

R - Split date into dd,mm,yy

I use superstore data and show how ...READ MORE

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

Duplicate axis for a R plot

Add duplicate axis using dup.axis attribute like ...READ MORE

Nov 4, 2019 in Data Analytics by radha
1,821 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,377 views
0 votes
1 answer

function to sort elements in a list

@ch, Using sort function. sort(l,decreasing = T) > l = ...READ MORE

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

How to get current time and date?

Use date function or timestamp function to ...READ MORE

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

R Shiny - Error in as.vector: cannot coerce type 'externalptr' to vector of type 'character'

Ravin, read the image into list src ...READ MORE

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

which to use fill or color to show colors in R plots?

The color attribute is only used for ...READ MORE

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

Format the date values in a specific format

@ch, Use format.Date function to convert one format ...READ MORE

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

Anova Analysis vs KMeans - R

The main difference between them is that ...READ MORE

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

How to choose best variables for classification and regression models?

How to choose the best variables for ...READ MORE

Oct 7, 2019 in Data Analytics by ch
• 3,450 points
709 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
912 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
906 views
0 votes
1 answer

Read an image into r

There are different packages that read images ...READ MORE

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

How to take input from user in R?

Readline() function read input from console as ...READ MORE

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

plot a line chart along with point labels in the plot

Follow the below steps: 1. Create a ggplot ...READ MORE

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

Split plot into multiple plots corresponding to each value of the field in R

Use facet_grid() and pass the field to ...READ MORE

Nov 4, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,831 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
630 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
850 views
0 votes
1 answer

R Error: Recommender method UCBF not implemented for data type realRatingMatrix

Kalyan, Try changing method from UBCF to POPULAR. train ...READ MORE

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

How to use mailR package?

Hi Prarthana, Install mailR and load the package. install.packages("mailR", ...READ MORE

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

pie chart using ggplot - R

Hi, even I was searching for this ...READ MORE

Aug 19, 2019 in Data Analytics by anonymous
• 33,030 points
2,597 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
1,005 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
734 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
907 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
711 views
0 votes
1 answer

How to sort substring from a dataframe

First, extract the substring from the data ...READ MORE

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

How to set choices of inputs within server function in shiny app?

@Kajal, Use renderUI function to add input elements ...READ MORE

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

R - any_vars and all_vars() functions

Hi, Chaitra The main difference between them is ...READ MORE

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

cant open a json file in r

You can use the package jsonlite to read ...READ MORE

Nov 4, 2019 in Data Analytics by pallavi
1,132 views
0 votes
1 answer

parameterized reports using RMarkdown

Add params attribute like below specifying dataset ...READ MORE

Nov 4, 2019 in Data Analytics by kamal
1,090 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
843 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
1,020 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
985 views