Trending questions in Data Analytics

0 votes
10 answers

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

fruit_Frame<-data.frame(Fruit=NA, Cost=NA, Quantity=NA)[-1,]; ...READ MORE

May 7 in Data Analytics by yxcv

edited May 8 by Gitika 52,541 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
41,817 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
40,366 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,460 points
37,230 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,460 points
32,540 views
0 votes
1 answer

Can someone resolve this problem

Hi@Abhirup, Your dataset contains a string value. You ...READ MORE

6 days ago in Data Analytics by MD
• 34,680 points
28 views
0 votes
0 answers

R program: Filter and re-arrange data based on multiple conditions

I have a data in which I ...READ MORE

Jun 30 in Data Analytics by Rajhesh
• 120 points

recategorized Jun 30 by Gitika 57 views
+1 vote
0 answers

R programming Error: Error in if (d >= 0) { : missing value where TRUE/FALSE needed

Here is my code: for(i in 1:(nrow(moon_sub))){   l_df[i,] <- ...READ MORE

Jun 23 in Data Analytics by Molly
• 130 points
54 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
24,602 views
0 votes
1 answer
0 votes
1 answer

Error in library(cowplot) : there is no package called ‘cowplot’

Hi@akhtar, By default, the cowplot module is not ...READ MORE

Jun 10 in Data Analytics by MD
• 34,680 points
67 views
0 votes
1 answer

Error in ggplot(iris, aes(x = Species, y = Sepal.Length)) : could not find function "ggplot"

Hi@akhtar, You have to install ggplot module in ...READ MORE

Jun 9 in Data Analytics by MD
• 34,680 points
62 views
0 votes
0 answers
0 votes
0 answers
0 votes
1 answer

How to create Heatmap for visualizing my dataset?

Hi@akhtar, You have to import seaborn module to ...READ MORE

May 4 in Data Analytics by MD
• 34,680 points
168 views
0 votes
1 answer

How to create our own dataframe in R?

Hi@akhtar, Let's say you want to create one ...READ MORE

Apr 29 in Data Analytics by MD
• 34,680 points
158 views
0 votes
1 answer

How to install R Studio in Windows?

Hi@akhtar, To install R Studio in your system, ...READ MORE

Apr 29 in Data Analytics by MD
• 34,680 points
130 views
0 votes
1 answer

Count the digits in a Numpy array

Hey, @Sourav, We can solve this with the ...READ MORE

Apr 21 in Data Analytics by Gitika
• 31,430 points
138 views
0 votes
1 answer
0 votes
1 answer
0 votes
0 answers

How can I create a graph for R? (barplot)

I want to draw a graph of ...READ MORE

Apr 10 in Data Analytics by anonymous
• 120 points
60 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,460 points
7,065 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,460 points
15,550 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 208 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
215 views
0 votes
1 answer

change the color for bars in geom_bar in ggplot

Hi @radha, You can have 2 types of ...READ MORE

Jul 24, 2019 in Data Analytics by Cherukuri
• 32,460 points
8,237 views
0 votes
2 answers

Counting the frequency of unique values - R

Try this, lapply(mtcars,function(x){ length(unique(x))}) READ MORE

Aug 20, 2019 in Data Analytics by anonymous
• 32,460 points
16,884 views
0 votes
1 answer
0 votes
1 answer

How to set the width of navlistPanel in Shiny? - R

The widths are the widths of the ...READ MORE

Jun 13 in Data Analytics by anonymous
358 views
0 votes
1 answer

batch file to run R Script

easy peasy. just pop the following into a ...READ MORE

May 24 in Data Analytics by anonymous
505 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,460 points
2,016 views
+1 vote
2 answers

"Error: '\U' used without hex digits in character string starting ""C:\U"" when trying to read a csv file in R

Replace all \ with \\. Its trying ...READ MORE

Nov 26, 2018 in Data Analytics by Maverick
• 10,820 points
11,025 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
375 views
0 votes
1 answer

How to rename a file using R?

I just found there are 2 functions file.rename() ...READ MORE

Oct 28, 2019 in Data Analytics by Cherukuri
• 32,460 points
2,582 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,460 points
2,014 views
0 votes
1 answer

Convert character column to Date field in R Data frame

This is a good question. READ MORE

May 4 in Data Analytics by anonymous
187 views
0 votes
1 answer

R programming error: { : missing value where TRUE/FALSE needed "

This should work: for ( i in 1:dim(m)[[1]] ...READ MORE

May 28, 2019 in Data Analytics by Zulaikha
• 890 points
7,998 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
309 views
0 votes
2 answers

How to change the value of a variable using R programming in a data frame?

You are getting this error since the ...READ MORE

Aug 16, 2019 in Data Analytics by anonymous
• 32,460 points
9,120 views
0 votes
1 answer

Error: stat_count() must not be used with a y aesthetic.

Hi Rayan, This error comes due to the ...READ MORE

Aug 19, 2019 in Data Analytics by anonymous
• 32,460 points
4,089 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,460 points
917 views
0 votes
1 answer

Show a list of all variables in R

Hi Swathi, You can use ls() to list ...READ MORE

Jun 27, 2019 in Data Analytics by Cherukuri
• 32,460 points
6,207 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,460 points
1,677 views
+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,460 points
373 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,460 points
880 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,460 points
731 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,460 points
879 views