Trending questions in Data Analytics

0 votes
1 answer

How do I convert a factor into date format?

That was close. The as needs to ...READ MORE

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

Standard Deviation in R Seems to be Returning the Wrong Answer - Am I Doing Something Wrong?

An easy illustration of standard deviation calculation: The ...READ MORE

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

pass character strings to ggplot2 within a function

In order to streamline my work process, ...READ MORE

Jun 24, 2022 in Data Analytics by Avinash
• 1,260 points
547 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
590 views
0 votes
0 answers

Using One Sample Kolmogorov Smirnov Test in R for in-group Variation/ Distribution

0 In order to compare the voice characteristics ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
512 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 577 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
360 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
594 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
457 views
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
325 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
710 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
437 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
615 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
536 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
620 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
551 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
392 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
464 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
355 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
790 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
390 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
341 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
340 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
441 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
648 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
842 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
621 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
486 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
825 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
426 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
532 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
460 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
289 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
545 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
395 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,770 points
25,249 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
353 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
340 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,884 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
41,007 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,690 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,425 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,460 points
10,912 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,479 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
33,791 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,666 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,460 points
7,219 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,480 points
15,190 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
21,708 views
0 votes
1 answer

Change the order of multiple legends in ggplot

Hi Radha, You can change the order of ...READ MORE

Jul 24, 2019 in Data Analytics by Cherukuri
• 33,030 points
25,225 views