Trending questions in Data Analytics

+1 vote
5 answers

How to filter out na in R?

Try this: df %>% filter(!is.na(col1)) READ MORE

Mar 26, 2019 in Data Analytics by anonymous
335,621 views
+1 vote
5 answers

How to remove NA values from a Vector in R?

Hello team, you can use na.omit x <- c(NA, 3, ...READ MORE

Dec 9, 2020 in Data Analytics by anonymous
• 82,840 points
196,255 views
0 votes
4 answers

How to change font size in R?

To change the font size of text ...READ MORE

Dec 16, 2020 in Data Analytics by Gitika
• 65,770 points
125,370 views
+2 votes
2 answers

How to change data type in R?

You can change data types using as.* ...READ MORE

Aug 16, 2019 in Data Analytics by anonymous
• 33,050 points
124,165 views
+4 votes
11 answers

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

Hi, You need to create a data frame ...READ MORE

Dec 11, 2020 in Data Analytics by MD
• 95,460 points
108,504 views
+5 votes
3 answers

Counting the frequency of unique values - R

Hi, You can use plyr module. It will give ...READ MORE

Dec 14, 2020 in Data Analytics by MD
• 95,460 points
99,755 views
+2 votes
1 answer

How to list variables in R

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

Jun 27, 2019 in Data Analytics by Cherukuri
• 33,050 points
100,444 views
+2 votes
5 answers

Printing a data.frame without index - Python

.tolist() function will remove index READ MORE

Mar 11, 2019 in Data Analytics by nishant thakur
88,350 views
+1 vote
3 answers

Filtering R data-frame with multiple conditions

You can use the 'filter' function from ...READ MORE

Mar 26, 2018 in Data Analytics by Bharani
• 4,660 points
87,393 views
+1 vote
2 answers

Which function can I use to clear the console in R and RStudio ?

Description                   Windows & Linux           Mac Clear console                      Ctrl+L ...READ MORE

Apr 17, 2018 in Data Analytics by anonymous
85,943 views
+4 votes
3 answers

How to sum a variable by group in R?

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

Aug 1, 2019 in Data Analytics by Cherukuri
• 33,050 points
78,472 views
0 votes
0 answers

How do I show "0" values in a filtered pivot table?

How do I show a "0" value ...READ MORE

Jul 2, 2024 in Data Analytics by MattZielenski

edited Mar 5 37 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,050 points
68,599 views
0 votes
2 answers

R function for finding the index of an element in a vector?

The function match works on vectors : x <- sample(1:10) x # ...READ MORE

Dec 12, 2020 in Data Analytics by Rajiv
• 8,870 points
56,940 views
0 votes
1 answer

How to Use rbind and cbind on Single Dataframe

To obtain the desired output, you can ...READ MORE

Jun 22, 2023 in Data Analytics by anonymous
• 1,420 points
1,257 views
0 votes
1 answer

how to use the Box-Cox power transformation in R

Yes, you are on the right track ...READ MORE

Jun 22, 2023 in Data Analytics by anonymous
• 1,420 points
1,385 views
0 votes
1 answer

Speed up the loop operation in R

To improve the performance of your code, ...READ MORE

Jun 22, 2023 in Data Analytics by anonymous
• 1,420 points
1,041 views
0 votes
1 answer

All Levels of a Factor in a Model Matrix in R

Yes, you can modify the model.matrix() function ...READ MORE

Jun 22, 2023 in Data Analytics by anonymous
• 1,420 points
1,171 views
0 votes
1 answer

Extracting specific columns from a data frame

Yes, there is a more efficient method ...READ MORE

Jun 22, 2023 in Data Analytics by anonymous
• 1,420 points
1,071 views
0 votes
1 answer

What is the difference between rm() and rm(list=ls())?

Yes, you can clear all variables in ...READ MORE

Jun 22, 2023 in Data Analytics by anonymous
• 1,420 points
1,024 views
0 votes
1 answer

Error: could not find function ... in R

If you encounter an error stating "'some.function' ...READ MORE

Jun 22, 2023 in Data Analytics by anonymous
• 1,420 points
832 views
0 votes
0 answers

Apache Flume is not proceeding to retrieve Twitter data

I download Apache Flume 1.11.0, Hadoop 3.3.1 ...READ MORE

Nov 27, 2022 in Data Analytics by anonymous

edited Mar 4 126 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,050 points
48,909 views
+6 votes
3 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,840 points
45,916 views
0 votes
1 answer

What does the double percentage sign (%%) mean?

According to the "Arithmetic operators" help page ...READ MORE

Jun 14, 2022 in Data Analytics by Sohail
• 3,040 points
3,341 views
0 votes
1 answer

R numbers from 1 to 100

Your error is seeking for range, which ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
1,980 views
0 votes
1 answer

What does 'r' mean before a Regex pattern?

Since the string is to be treated ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
1,848 views
0 votes
0 answers

Create data frame from function in R

One function that I designed can produce ...READ MORE

Jul 9, 2022 in Data Analytics by avinash
• 1,840 points
979 views
0 votes
1 answer

Vectorized IF statement in R?

x <- seq(0.1,10,0.1) > x [1] ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
1,729 views
0 votes
0 answers

R function rep() in Python (replicates elements of a list/vector)

Each element of a vector is duplicated ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
1,488 views
0 votes
0 answers

How to calculate the mean/sd of a vector without using the in-built R function?

I'm just having trouble understanding what must ...READ MORE

Jul 25, 2022 in Data Analytics by avinash
• 1,840 points

edited Mar 4 128 views
0 votes
0 answers

How to run the Kruskal-Wallis or Mann-Whitney Test in R?

Can anyone give me a hint on ...READ MORE

Jul 25, 2022 in Data Analytics by avinash
• 1,840 points

edited Mar 4 113 views
0 votes
0 answers

What does R assume regarding order in paired t-test?

In the non-formula signature of the t.test function t.test(x, y, ...READ MORE

Jul 25, 2022 in Data Analytics by avinash
• 1,840 points

edited Mar 4 98 views
0 votes
1 answer

what is diffrence between NROW and nrow in r?

5 In R, you may always check ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
1,354 views
+1 vote
2 answers

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
• 33,050 points
36,162 views
0 votes
1 answer

Why does tidyverse still require plyr to load?

ggplot2 still imports plyr (at least as ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
1,236 views
0 votes
0 answers

How does cut with breaks work in R

I've tried using?cut but haven't been able ...READ MORE

Jul 20, 2022 in Data Analytics by avinash
• 1,840 points

edited Mar 4 16 views
0 votes
0 answers

Confidence interval calculation in R

When attempting to compute the CI in ...READ MORE

Jul 5, 2022 in Data Analytics by avinash
• 1,840 points
595 views
0 votes
0 answers

Why does as.character() return an integer on a list of dates?

I was shocked to see R act ...READ MORE

Jul 18, 2022 in Data Analytics by avinash
• 1,840 points

edited Mar 4 18 views
0 votes
1 answer

why the predict() function does have different rows in R

Alter this sentence: model = lm(train$latitude train$crashes) to lm(crashes ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
1,032 views
0 votes
0 answers

How to properly use the predict function in R

0 First I'm going to give you some ...READ MORE

Jul 18, 2022 in Data Analytics by avinash
• 1,840 points

edited Mar 4 17 views
0 votes
1 answer

What does "pch" stand for?

Plot character or pch is the standard ...READ MORE

Jun 23, 2022 in Data Analytics by Sohail
• 3,040 points
1,494 views
0 votes
0 answers

How can I avoid the transformation into an atomic vector in a matrix (r programming)

I'm scrambling to come up with a ...READ MORE

Jul 5, 2022 in Data Analytics by avinash
• 1,840 points
559 views
0 votes
0 answers

Extracting the last n characters from a string in R

See the code below: library(dslabs) data(gapminder) differenceminder percent > percent filter(year% ...READ MORE

Jul 5, 2022 in Data Analytics by avinash
• 1,840 points
553 views
0 votes
1 answer

why the predict() function does have different rows in R

Alter this sentence: model = lm(train$latitude train$crashes) to lm(crashes ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
987 views
0 votes
0 answers

How can two strings be concatenated?

cbind = tmp ("GAD", "AB") tmp # [,1] ...READ MORE

Jul 5, 2022 in Data Analytics by avinash
• 1,840 points
501 views
0 votes
1 answer

How to one hot encode several categorical variables in R

43 I advise employing the caret package's dummyVars ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
943 views
0 votes
1 answer

Text mining- how to build a term-document matrix

You're not loading the TM library, and ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
831 views
0 votes
1 answer

Loading ggplot2 package, missing 'munsell' package

You ought to have done this: "ggplot2" is ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
1,005 views