Most voted questions in Data Analytics

+1 vote
1 answer

Executing the pig commands

Dear Narayana, Hope you are doing great. Yes you ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
381 views
+1 vote
1 answer

Git - commited file and uncommited file

Hi Mittal, Git commit is necessary for pushing ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
384 views
+1 vote
1 answer

R query and Data Science

Dear Deepika, Hope you are doing great. You can ...READ MORE

Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
576 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,180 points
781 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,180 points
446 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
544 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,180 points
565 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,180 points
528 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,180 points
650 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,180 points
332 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,180 points
347 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
270 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
268 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
243 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
217 views
0 votes
0 answers

Load csv file in R

Is it possible to import a csv ...READ MORE

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

Send str() output to View()

A dataset containing 313 variables is the ...READ MORE

Jun 30, 2022 in Data Analytics by avinash
• 1,840 points
232 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
212 views
0 votes
0 answers

Extracting the last n characters from a string in R

The final n characters of a string ...READ MORE

Jun 27, 2022 in Data Analytics by avinash
• 1,840 points
318 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
203 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
261 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,033 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
231 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
361 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
285 views
0 votes
0 answers

How can I rbind multiple single-value rows to my data.frame?

0 What follows functions as expected: Data.frame(c(1, 2, 3)) ...READ MORE

Jun 24, 2022 in Data Analytics by Avinash
• 1,260 points
379 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
226 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
400 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

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
809 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
229 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

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
571 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
522 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
526 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
971 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 336 views
0 votes
1 answer

StepAIC() stopping point

Square RSS Df Sum AIC 169 61.3 ...READ MORE

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

Polynomials as functions in R

 this will work _polynomial = function(x) { ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
462 views
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
369 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
603 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
830 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
253 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
354 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
337 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
307 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,182 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
162 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
314 views