Most answered questions in Data Analytics

0 votes
1 answer

Add image background to ggplot

I found this way from a blog. Check ...READ MORE

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

How to use hclust function?

hclust performs hierarchical cluster analysis on a ...READ MORE

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

Intermediate + running sum of vector

Hey, It's quite simple, use the accumulate function ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
606 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
422 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
384 views
+10 votes
1 answer

Will random forest algorithm work if rows have a few duplicate values?

I have no idea about RandomForest, but ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
2,641 views
0 votes
1 answer

unable to install reprtree package

The solution to the same issue is ...READ MORE

Nov 2, 2019 in Data Analytics by Cherukuri
• 33,030 points
2,377 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
457 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
495 views
0 votes
1 answer

Convert a contingency table into dataframe

The simplest way to convert the contingency ...READ MORE

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

What is the difference between merge and bind in R?

Merge function merges an arbitrarily large series ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
6,847 views
0 votes
1 answer

what is a contingency table?

A contingency table is a table showing ...READ MORE

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

How to find cumulative total of rows in r?

Calculate intermediate sum and total sum using ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
768 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
451 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
391 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
500 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
501 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
688 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
464 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
458 views
0 votes
1 answer

How to check if a element is present in the list?

There are multiple functions for this purpose ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
21,019 views
0 votes
1 answer

How to convert continuous variable to categorical variable and vice versa?

Use discretize function to convert a continuous variable ...READ MORE

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

What is the difference between list and vector in R?

The difference are - A list holds different ...READ MORE

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

How do I remove an element from a list by index in R?

Use list[index] = NULL The list value will ...READ MORE

Oct 31, 2019 in Data Analytics by Cherukuri
• 33,030 points
2,090 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
755 views
0 votes
1 answer

How to check if a file already exists or not in R?

Check out file.exists() function!! The function file.exists() returns a ...READ MORE

Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
66,947 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
463 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
358 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
454 views
0 votes
1 answer

How to make points transparent using plot function in R?

There is no attribute to set the ...READ MORE

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

how to fill the points of the plot using just plot function?

Hey, I don't think you can make ...READ MORE

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

How ‘breaks’ and ‘ cut’ works in R?

@ch, Cut divides the range of x into ...READ MORE

Oct 14, 2019 in Data Analytics by rohan
3,372 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
446 views
0 votes
1 answer

Add buttons to perform actions on the leaflet map.

@ch, You can add easy buttons to add ...READ MORE

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

Remove characters from field in dataframe

Use the below code to update the ...READ MORE

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

reverse a list or vector in R

@ch, Use rev function to reverse R objects ...READ MORE

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

What is the difference between NULL and NA?

In simple words, NULL represents the null or an empty object ...READ MORE

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

How to add special characters to a list?

@ch, You can add $. , / using ...READ MORE

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

Reverse a string in R

Install stringi package and use stri_reverse(). > install.packages("stringi") > ...READ MORE

Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
1,429 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
381 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
454 views