Trending questions in Data Analytics

0 votes
9 answers

Creating an empty data.frame with only column names - R

Will the below code work to create ...READ MORE

Aug 1, 2019 in Data Analytics by preeti
34,397 views
0 votes
4 answers

Printing a data.frame without index - Python

.tolist() function will remove index READ MORE

Mar 11, 2019 in Data Analytics by nishant thakur
29,086 views
0 votes
4 answers

How to remove NA values with dplyr::filter()

Can we create a alist as below ...READ MORE

Aug 5, 2019 in Data Analytics by anonymous
20,899 views
0 votes
2 answers

How to sum a variable by group in R?

You can also try this way, x_new = ...READ MORE

Jul 31, 2019 in Data Analytics by Cherukuri
• 32,440 points
20,857 views
0 votes
4 answers

How to remove NA values from a Vector in R?

You can try na.omit() or na.exclude() too. ...READ MORE

Jul 31, 2019 in Data Analytics by anonymous
• 32,440 points
19,826 views
0 votes
0 answers

Rstudio "Erreur : unexpected symbol in:"

Bonjour, I'm new to Rstudio programming. I ...READ MORE

Mar 2 in Data Analytics by Juli -
• 120 points

edited Mar 4 by Gitika 121 views
+2 votes
0 answers

I was unable to cluster the data points using dbscan in R programming

After using dbscan package I was given with ...READ MORE

Feb 1 in Data Analytics by ramthotahappy
• 140 points
166 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
4,004 views
+1 vote
0 answers

Counting the frequency of user activities - R

Within a data frame (see below), I ...READ MORE

Dec 3, 2019 in Data Analytics by anonymous
• 130 points
286 views
+1 vote
1 answer

Why data cleaning plays a vital role in the analysis?

Data cleaning is the fourth step in ...READ MORE

Nov 22, 2019 in Data Analytics by Keshav
242 views
0 votes
2 answers

Error: could not find function - R Programming

Yes, Just like @Maverik said, It happens ...READ MORE

Aug 22, 2019 in Data Analytics by anonymous
• 32,440 points
10,544 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
957 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, 2019 in Data Analytics by anonymous
15,179 views
0 votes
1 answer
+9 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
200 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
291 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
365 views
0 votes
1 answer

Splitting strings in a list delimited by space

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

Oct 30, 2019 in Data Analytics by Cherukuri
• 32,440 points
120 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
• 32,440 points
214 views
0 votes
1 answer

How to arrange ggplots in custom order?

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

Oct 29, 2019 in Data Analytics by Cherukuri
• 32,440 points
113 views
0 votes
1 answer

How to add layers in ggplot?

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

Oct 31, 2019 in Data Analytics by Cherukuri
• 32,440 points
82 views
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
• 32,440 points
66 views
0 votes
1 answer

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

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

Oct 29, 2019 in Data Analytics by Cherukuri
• 32,440 points
64 views
0 votes
1 answer

How to use hclust function?

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

Oct 28, 2019 in Data Analytics by Cherukuri
• 32,440 points
189 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
• 32,440 points
263 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
• 32,440 points
47 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
• 32,440 points
246 views
0 votes
1 answer

Intermediate + running sum of vector

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

Oct 28, 2019 in Data Analytics by Cherukuri
• 32,440 points
47 views
0 votes
1 answer

Add list elments recursively

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

Oct 28, 2019 in Data Analytics by Cherukuri
• 32,440 points
42 views
0 votes
1 answer

Truncate numeric values without round off

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

Oct 28, 2019 in Data Analytics by Cherukuri
• 32,440 points
33 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
• 32,440 points
37 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
• 32,440 points
30 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
479 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
• 32,440 points
75 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
133 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
• 32,440 points
33 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
• 32,440 points
28 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
79 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
58 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
38 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
• 32,440 points
390 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
48 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
• 32,440 points
633 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
32 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
• 32,440 points
35 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
• 32,440 points
33 views
0 votes
0 answers

How to convert a table into tree?

I used getTree() and randomForest object to ...READ MORE

Oct 22, 2019 in Data Analytics by ch
• 3,380 points
55 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, 2019 in Data Analytics by Cherukuri
• 32,440 points
25 views