Most answered questions in Data Analytics

0 votes
2 answers

In data frame how to spilt strings into values?

You can do this using dplyr and ...READ MORE

Dec 4, 2018 in Data Analytics by Kalgi
• 42,410 points
61 views
0 votes
2 answers

Integration of R with Java

there is a package called rjava that ...READ MORE

Dec 4, 2018 in Data Analytics by Kalgi
• 42,410 points
50 views
+1 vote
2 answers

Finding number of missing values and removing those missing values from a data-frame

To find number of missing values for ...READ MORE

Aug 14 in Data Analytics by anonymous
62 views
+1 vote
2 answers

Custom Function to replace missing values in a vector with the mean of values

Try this. lapply(a,function(x){ifelse(is.na(x),mean(a,na.rm = TRUE) ...READ MORE

Aug 14 in Data Analytics by anonymous
100 views
0 votes
2 answers

Filtering R data-frame with multiple conditions

librarry(dplyr) dataset >%> filter((a ==1,b>15 ) | (a==2,b&g ...READ MORE

Aug 8 in Data Analytics by anonymous
7,729 views
0 votes
2 answers

Transforming a key/value string into distinct rows in R

We would start off by loading the ...READ MORE

Mar 26, 2018 in Data Analytics by Bharani
• 4,550 points
77 views
0 votes
2 answers

Installing MXNet for R in Windows System

You can install it for python in ...READ MORE

Dec 3, 2018 in Data Analytics by Kalgi
• 42,410 points
411 views
0 votes
2 answers

"Train" and "Test" sets in Data Science

Normally to perform supervised learning you need ...READ MORE

Aug 2, 2018 in Data Analytics by Anmol
• 3,620 points
60 views
0 votes
2 answers

What is difference between Distributed search head and Search head cluster?

 A distributed environment describes the separation of ...READ MORE

Dec 3, 2018 in Data Analytics by Ali
• 10,430 points
189 views
0 votes
1 answer

Error in unique.default(x, nmax = nmax) : unique() applies only to vectors in R

This error is displayed if you used ...READ MORE

Oct 30 in Data Analytics by Cherukuri
• 31,840 points
93 views
0 votes
1 answer

Splitting strings in a list delimited by space

Use strspltit function and provide separator as ...READ MORE

Oct 30 in Data Analytics by Cherukuri
• 31,840 points
19 views
0 votes
1 answer

What is grob and how to create grobs in ggplot?

A grid graphical object (“grob”) is a ...READ MORE

Oct 29 in Data Analytics by Cherukuri
• 31,840 points
41 views
0 votes
1 answer

How to arrange ggplots in custom order?

You can arrange a ggplot by using ...READ MORE

Oct 29 in Data Analytics by Cherukuri
• 31,840 points
24 views
0 votes
1 answer

Error: `width` is shorter than `ellipsis`FALSE

Add ellipsis = "" attribute to remove ...READ MORE

Oct 29 in Data Analytics by Cherukuri
• 31,840 points
23 views
0 votes
1 answer

How to add layers in ggplot?

You can add multiple layers with one ...READ MORE

Oct 31 in Data Analytics by Cherukuri
• 31,840 points
15 views
0 votes
1 answer

Add image background to ggplot

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

Oct 31 in Data Analytics by Cherukuri
• 31,840 points
15 views
0 votes
1 answer

How to use hclust function?

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

Oct 28 in Data Analytics by Cherukuri
• 31,840 points
23 views
0 votes
1 answer

Add list elments recursively

You cannot use the sum function on ...READ MORE

Oct 28 in Data Analytics by Cherukuri
• 31,840 points
16 views
0 votes
1 answer

Intermediate + running sum of vector

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

Oct 28 in Data Analytics by Cherukuri
• 31,840 points
20 views
0 votes
1 answer

Edit list elements when condition is met

You can use regular if condition with ...READ MORE

Oct 31 in Data Analytics by Cherukuri
• 31,840 points
15 views
0 votes
1 answer

Truncate numeric values without round off

You can either use substring function or ...READ MORE

Oct 28 in Data Analytics by Cherukuri
• 31,840 points
13 views
0 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 28 in Data Analytics by Cherukuri
• 31,840 points
23 views
0 votes
1 answer

unable to install reprtree package

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

Nov 2 in Data Analytics by Cherukuri
• 31,840 points
29 views
0 votes
1 answer

plot function - hide all ticks

hey @ch, Use below attribute to hide all ...READ MORE

Oct 21 in Data Analytics by Cherukuri
• 31,840 points
21 views
0 votes
1 answer

plot function - hide x/y - axis points

hey @ch, Use the below attribute to hide ...READ MORE

Oct 21 in Data Analytics by Cherukuri
• 31,840 points
28 views
0 votes
1 answer

Convert a contingency table into dataframe

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

Oct 21 in Data Analytics by Cherukuri
• 31,840 points
21 views
0 votes
1 answer

How to create a weighted data set?

HI @ch, Create a list of elements and ...READ MORE

Oct 21 in Data Analytics by Cherukuri
• 31,840 points
18 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 28 in Data Analytics by Cherukuri
• 31,840 points
50 views
0 votes
1 answer

what is a contingency table?

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

Oct 21 in Data Analytics by Cherukuri
• 31,840 points
24 views
0 votes
1 answer

Error "Object Concentration not found"

Hi Sanju, is the abc data frame created in ...READ MORE

Oct 18 in Data Analytics by Cherukuri
• 31,840 points
18 views
0 votes
1 answer

How to find cumulative total of rows in r?

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

Oct 28 in Data Analytics by Cherukuri
• 31,840 points
14 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 in Data Analytics by Cherukuri
• 31,840 points
15 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 in Data Analytics by Cherukuri
• 31,840 points
19 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 in Data Analytics by Cherukuri
• 31,840 points
36 views
0 votes
1 answer

Manage length of field values

Hi, Use str_pad() function to format the length ...READ MORE

Oct 23 in Data Analytics by Cherukuri
• 31,840 points
20 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 in Data Analytics by Cherukuri
• 31,840 points
14 views
0 votes
1 answer

What is a regex?

A regular expression, regex or regexp is ...READ MORE

Nov 2 in Data Analytics by Cherukuri
• 31,840 points
15 views
0 votes
1 answer

How to use regular expressions in R?

Set of operators to use for regular ...READ MORE

Nov 2 in Data Analytics by anonymous
• 31,840 points
15 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 28 in Data Analytics by Cherukuri
• 31,840 points
15 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 28 in Data Analytics by Cherukuri
• 31,840 points
17 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 28 in Data Analytics by Cherukuri
• 31,840 points
15 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 28 in Data Analytics by Cherukuri
• 31,840 points
23 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 28 in Data Analytics by Cherukuri
• 31,840 points
77 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 28 in Data Analytics by Cherukuri
• 31,840 points
22 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 in Data Analytics by Cherukuri
• 31,840 points
25 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 28 in Data Analytics by Cherukuri
• 31,840 points
14 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 in Data Analytics by Cherukuri
• 31,840 points
22 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 in Data Analytics by Cherukuri
• 31,840 points
12 views
0 votes
1 answer

List should be atomic

@ch, A few functions only work with an ...READ MORE

Oct 28 in Data Analytics by Cherukuri
• 31,840 points
14 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 in Data Analytics by Cherukuri
• 31,840 points
19 views