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
2,004 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
1,017 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,557 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
592 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,168 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,789 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
598 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
696 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,753 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
679 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
690 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,860 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,418 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,783 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
632 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
574 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
3,028 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,458 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
579 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,357 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,804 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,665 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
505 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,109 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
954 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
725 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
948 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,935 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,730 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,761 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
704 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,848 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
894 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
647 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,067 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,927 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,639 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,026 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
745 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
933 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
739 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,135 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,530 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
679 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,159 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,129 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
882 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,057 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
1,028 views