Trending questions in Data Analytics

0 votes
0 answers

Get row and column indices of matches using `which()`

months and 9 years ago updated ten months ...READ MORE

Jun 27, 2022 in Data Analytics by avinash
• 1,840 points
212 views
0 votes
0 answers

Why 'nrow()' function doesn't seem to work within 'summarise()' function?

See the code below: library(dslabs) \sdata(gapminder) gapminder percent > ...READ MORE

Jun 27, 2022 in Data Analytics by avinash
• 1,840 points
205 views
0 votes
1 answer

if - else if - else statement and brackets

When the first if is followed by ...READ MORE

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

How to use the strsplit function with a period

Since the dot has a specific meaning ...READ MORE

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

How can I make a list of lists in R?

Lists of lists are simple to create. list1 ...READ MORE

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

Understanding output of rbind function when a list is passed as argument

While using R to practise fundamental matrices ...READ MORE

Jun 24, 2022 in Data Analytics by Avinash
• 1,260 points
290 views
0 votes
1 answer

understanding sapply function in r

Do you read 2? sapply. Either a ...READ MORE

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

Use of ggplot() within another function in R [closed]

Using the ggplot2 package, I'm attempting to ...READ MORE

Jun 22, 2022 in Data Analytics by avinash
• 1,840 points

closed Jun 22, 2022 by avinash 341 views
0 votes
1 answer

What happens when prob argument in sample sums to less/greater than 1?

Excellent query. The documentation is ambiguous on ...READ MORE

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

Difference between paste() and paste0()

paste possesses 3 arguments. (paste, sep = " ...READ MORE

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

Looping with arima in R

I'm attempting to use the for function ...READ MORE

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

paste() within another function

I'm not clear why the first function ...READ MORE

Jun 24, 2022 in Data Analytics by Avinash
• 1,260 points
227 views
0 votes
0 answers

What's the use of which?

I'm trying to get a handle on ...READ MORE

Jun 23, 2022 in Data Analytics by avinash
• 1,840 points
245 views
0 votes
1 answer

Mean of categorical variables from plyr package

df<-data.frame(risk= rep(c("ADV","HHM","POV"),10), ...READ MORE

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

What is meant by "An Object" when we use Str() Function in R

Everyone agrees that str() reveals an object's ...READ MORE

Jun 23, 2022 in Data Analytics by avinash
• 1,840 points
235 views
0 votes
1 answer

setwd() in the current working dir

# set the working directory to the ...READ MORE

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

Create line graph with multiple lines in R

You must first restructure your dataset into ...READ MORE

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

How to use Aggregate function in R

Where dat is the name of your ...READ MORE

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

Is there a quantile function in R that includes both given x and given probs?

I need a R function that computes ...READ MORE

Jun 23, 2022 in Data Analytics by avinash
• 1,840 points
221 views
0 votes
1 answer

How to use the switch statement in R functions?

Switch definitely wasn't intended to operate this ...READ MORE

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

tidyr: using mutate inside a function

We could translate it to a symbol ...READ MORE

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

R: Comment out block of code [duplicate]

The majority of editors use a short ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
245 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,030 points
34,973 views
0 votes
1 answer

How to find the statistical mode?

There is one more option that applies ...READ MORE

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

What does na.rm=TRUE actually means?

Whenever we want to have NA in ...READ MORE

Jun 9, 2022 in Data Analytics by Avinash
• 1,260 points
633 views
0 votes
1 answer

Use of $ and %% operators in R

According to help('percent in percent'), percent in ...READ MORE

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

Why variance in R is different? [duplicate]

There are usually two methods for calculating ...READ MORE

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

How to rename a single column in a data.frame?

data.rename(columns={'gdp':'log(gdp)'}, inplace=True) The rename show that it accepts a dict ...READ MORE

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

R: use of "where" to select rows by matching an element from a list

I'm trying to utilise R's "where" function ...READ MORE

Jun 10, 2022 in Data Analytics by Avinash
• 1,260 points
551 views
0 votes
1 answer

How can I create a correlation matrix in R?

An example, d <- data.frame(x1=rnorm(10), ...READ MORE

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

Counting the number of elements with the values of x in a vector

You may simply use the table() method: > ...READ MORE

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

https://www.edureka.co/community/183864/mean-of-categorical-variables-from-plyr-package

I'm modelling with the fpp2 package's data ...READ MORE

Jun 17, 2022 in Data Analytics by Avinash
• 1,260 points
164 views
0 votes
0 answers

R package: Write own summary function (method)

I created a R package that fits ...READ MORE

Jun 14, 2022 in Data Analytics by Avinash
• 1,260 points
292 views
0 votes
0 answers

Function to clear the console in R and RStudio

I'm curious if there is a way ...READ MORE

Jun 10, 2022 in Data Analytics by Avinash
• 1,260 points
394 views
0 votes
0 answers

Why I cannot save mutate result in r?

I tried to rank "date" within each ...READ MORE

Jun 9, 2022 in Data Analytics by Avinash
• 1,260 points
220 views
0 votes
0 answers

How to create a data summary function?

I'm trying to create a function that ...READ MORE

Jun 9, 2022 in Data Analytics by Avinash
• 1,260 points
212 views
0 votes
0 answers

How to generate correlation plot of my data.frame in R?

I have a df and I want ...READ MORE

Jun 9, 2022 in Data Analytics by Avinash
• 1,260 points
187 views
0 votes
1 answer

TypeError: 'tuple' object is not callable

Hi, @Prasanna, The “TypeError: ‘tuple’ object is not ...READ MORE

Nov 10, 2020 in Data Analytics by Gitika
• 65,910 points
24,596 views
+1 vote
3 answers

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

Try this: df$symbol <- as.character(df$symbol) df$symbol[df$sym ...READ MORE

Jan 11, 2019 in Data Analytics by Tyrion anex
• 8,700 points
35,258 views
+1 vote
2 answers

How to replace a value in a data frame based on a conditional 'If' statement?

It's easier to convert alpha to characters ...READ MORE

Jun 6, 2018 in Data Analytics by Sahiti
• 6,370 points
36,315 views
0 votes
1 answer

What is set.seed() in R?

Let me explain in simple words, set seed ...READ MORE

Jul 9, 2019 in Data Analytics by anonymous
• 33,030 points
38,014 views
0 votes
3 answers

2) Which of the following are applicable to Bigdata technologies(Select all applicable)

Replication, transaction processing READ MORE

Nov 25, 2021 in Data Analytics by anonymous
3,186 views
+1 vote
2 answers

How can I drop columns by name in a data frame ?

We can Drop Columns by name in ...READ MORE

Apr 14, 2018 in Data Analytics by zombie
• 3,790 points
28,084 views
0 votes
1 answer

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

Hi@akhtar, You need to install the library in ...READ MORE

Oct 6, 2020 in Data Analytics by MD
• 95,440 points
9,819 views
+3 votes
2 answers

Error: could not find function - R Programming

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

Aug 23, 2019 in Data Analytics by anonymous
• 33,030 points
32,957 views
0 votes
2 answers

What are the differences between overfitting and underfitting?

Overfitting is a modeling error which occurs when ...READ MORE

Aug 8, 2019 in Data Analytics by anonymous
34,158 views
0 votes
3 answers

How to select rows in a range from dataframe?

This should do it integer_location = np.where(df.index == ...READ MORE

Dec 16, 2020 in Data Analytics by Roshni
• 10,520 points
14,713 views
0 votes
1 answer

How can I print to stdout in R?

Hi@akhtar, Sometimes we need to print to stdout ...READ MORE

Oct 30, 2020 in Data Analytics by MD
• 95,440 points
6,234 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
20,977 views
0 votes
1 answer

9) Subscriber Data analysis includes __________ (select all applicable)

Option d)  Subscriber profiling, upselling and innovative tariffs Master ...READ MORE

Dec 2, 2020 in Data Analytics by Gitika
• 65,910 points
3,215 views