Latest questions in Data Analytics

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
803 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
740 views
0 votes
0 answers

Using dcast to widen a data frame

I've got the following data set: data.frame(z, z, ...READ MORE

Jun 20, 2022 in Data Analytics by Avinash
• 1,260 points

edited Mar 4 57 views
0 votes
0 answers

Using dcast to widen a data frame

I've got the following data set: data.frame(z, z, ...READ MORE

Jun 20, 2022 in Data Analytics by Avinash
• 1,260 points

edited Mar 4 50 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
1,028 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,340 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
557 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
813 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
736 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
658 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,824 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
381 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
630 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
728 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
810 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
1,243 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
803 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
588 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
922 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
698 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,586 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,149 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
645 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
1,062 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
808 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
694 views
0 votes
0 answers

How do I change the data type of this column?

Hi, I have two columns in a ...READ MORE

Jun 12, 2022 in Data Analytics by Ahmad

edited Mar 4 58 views
0 votes
0 answers

How to identify which columns are not "NA" per row in a matrix?

I have a matrix of 12 rows ...READ MORE

Jun 10, 2022 in Data Analytics by Avinash
• 1,260 points

edited Mar 4 59 views
0 votes
0 answers

How to identify which columns are not "NA" per row in a matrix?

I have a matrix of 12 rows ...READ MORE

Jun 10, 2022 in Data Analytics by Avinash
• 1,260 points

edited Mar 4 52 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
875 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
605 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
671 views
0 votes
0 answers

How to find the statistical mode?

Mean() and median() are common R functions ...READ MORE

Jun 10, 2022 in Data Analytics by Avinash
• 1,260 points

edited Mar 4 59 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
1,009 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
571 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
519 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
426 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
468 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
981 views
0 votes
0 answers

How to print the head (first 10 rows) with only select variables in R

In order to print out the first ...READ MORE

Jun 9, 2022 in Data Analytics by Avinash
• 1,260 points

edited Mar 4 63 views
0 votes
0 answers

What does na.rm=TRUE actually means?

Whenever we have NA in our data, ...READ MORE

Jun 9, 2022 in Data Analytics by Avinash
• 1,260 points

edited Mar 4 64 views
0 votes
0 answers

How does mean parameter in rnorm function works

I was wanting to know how does ...READ MORE

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

edited Mar 4 57 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
972 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,599 views
0 votes
0 answers

Data science

So, there is no doubt that both ...READ MORE

May 19, 2022 in Data Analytics by Pravalika

edited Mar 4 141 views
0 votes
0 answers

what could be a sql query for :

what could be a sql query for ...READ MORE

Mar 21, 2022 in Data Analytics by anonymous

edited Mar 4 73 views
0 votes
0 answers

How to start step by step learning of data analyst. What to start first R or Sql or Paython or tableau?

I don't have any previous knowledge of ...READ MORE

Jan 23, 2022 in Data Analytics by anonymous

edited Mar 4 103 views
0 votes
0 answers

How do I create a new variable using multiple data frames in R?

I am trying to create a new ...READ MORE

Jan 17, 2022 in Data Analytics by anonymous

edited Mar 4 96 views
0 votes
0 answers

Data Science Training in Mumbai

I want the best institute regarding Data ...READ MORE

Oct 4, 2021 in Data Analytics by richamalhotra
• 100 points

edited Mar 4 54 views
0 votes
0 answers

Which of the following is true of running a Spark application on Hadoop YARN?

Q12.Which of the following is true of ...READ MORE

Aug 27, 2021 in Data Analytics by Vipul

edited Mar 4 69 views