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
570 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
413 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
533 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
580 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
501 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
348 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
576 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 552 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
448 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
312 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
691 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
418 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
590 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
595 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
507 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
378 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
447 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
339 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
515 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
373 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
749 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
327 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
326 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
408 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
474 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
612 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
601 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
807 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
808 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
410 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
520 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
447 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
279 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
530 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
379 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
341 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
329 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,164 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,828 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
40,700 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,654 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,408 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,798 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,430 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,705 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,616 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,134 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,156 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,636 views
0 votes
1 answer

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

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

Sep 7, 2020 in Data Analytics by MD
• 95,460 points
7,345 views