Trending questions in Data Science

0 votes
0 answers

Using group by on multiple columns

I recognize the purpose of GROUP BY ...READ MORE

Sep 2, 2022 in Data Science by Kithuzzz
• 26,220 points
82 views
0 votes
0 answers

Finding duplicate rows in SQL Server

I have a SQL Server data set ...READ MORE

Aug 13, 2022 in Data Science by Kithuzzz
• 26,220 points
87 views
0 votes
0 answers

R: Generate Random Numbers with "floor" and "runif"

The R programming language is what I'm ...READ MORE

Jul 22, 2022 in Data Science by avinash
• 1,840 points
144 views
0 votes
0 answers

How to read a csv-file from an url in R?

I'm not very experienced with R, so ...READ MORE

Jul 22, 2022 in Data Science by avinash
• 1,840 points
139 views
0 votes
0 answers

Forecast Package from R in Python

The greatest tool for time series analysis ...READ MORE

Jul 22, 2022 in Data Science by avinash
• 1,840 points
129 views
0 votes
0 answers

The difference of na.rm and na.omit in R

I've just started with R and I've ...READ MORE

Jul 22, 2022 in Data Science by avinash
• 1,840 points
109 views
0 votes
0 answers

How to plot two histograms together in R?

I have two data frames, one each ...READ MORE

Jul 22, 2022 in Data Science by avinash
• 1,840 points
87 views
0 votes
0 answers

What does R assume regarding order in paired t-test?

I'm assuming that the data are assumed ...READ MORE

Jul 22, 2022 in Data Science by avinash
• 1,840 points
72 views
0 votes
0 answers

Data frames and is.nan()

I was using sum(is.na(my.df)) to check whether ...READ MORE

Jul 22, 2022 in Data Science by avinash
• 1,840 points
46 views
0 votes
0 answers

Understanding of minbucket function in CART model using R

Let's say that the training data is ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points
63 views
0 votes
0 answers

How to use plotly in R shiny

I'm attempting to add a graph to ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points
58 views
0 votes
0 answers

R command for setting working directory to source file location in Rstudio

I am working out some tutorials in ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points
58 views
0 votes
0 answers

sample function in R

I've only recently started using RStudio to ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points
47 views
0 votes
0 answers

Plot a legend outside of the plotting area in base graphics?

I've only recently started using RStudio to ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points
46 views
0 votes
0 answers

Data frames and is.nan()

Sum(is.na(my.df)) worked as predicted when I used ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points
44 views
0 votes
1 answer

What does c do in R?

The c function in R programming usually stands ...READ MORE

Jun 1, 2022 in Data Science by Sohail
• 2,960 points
1,870 views
0 votes
0 answers

passing function argument to dplyr select

I can do this to pick out ...READ MORE

Jul 9, 2022 in Data Science by avinash
• 1,840 points
71 views
0 votes
0 answers

NA while using strptime function

Version 1.0.136 of R Studio for Windows ...READ MORE

Jul 9, 2022 in Data Science by avinash
• 1,840 points
69 views
0 votes
0 answers

Frequency table in R

I'm having trouble with something that ought ...READ MORE

Jul 9, 2022 in Data Science by avinash
• 1,840 points
68 views
0 votes
0 answers

How to deal with NaN values in R?

Due of my inexperience with programming and ...READ MORE

Jul 9, 2022 in Data Science by avinash
• 1,840 points
62 views
0 votes
0 answers

Difference between ls() and objects()

What distinguishes the ls() and objects() functions? The ...READ MORE

Jul 9, 2022 in Data Science by avinash
• 1,840 points
58 views
0 votes
0 answers

How does cut with breaks work in R

I've tried using?cut but haven't been able ...READ MORE

Jul 9, 2022 in Data Science by avinash
• 1,840 points
58 views
0 votes
0 answers

Read an Excel file directly from a R script

How do I open an Excel file ...READ MORE

Jul 9, 2022 in Data Science by avinash
• 1,840 points
43 views
0 votes
0 answers

How to manually find the minors of a matrix in R programming?

I have to write a function that ...READ MORE

Jul 5, 2022 in Data Science by avinash
• 1,840 points
124 views
0 votes
0 answers

What is the difference between rm() and rm(list=ls())?

The majority of items I've read. They ...READ MORE

Jul 5, 2022 in Data Science by avinash
• 1,840 points
107 views
0 votes
0 answers

How does cut with breaks work in R

I've tried using?cut but haven't been able ...READ MORE

Jul 6, 2022 in Data Science by avinash
• 1,840 points
49 views
0 votes
0 answers

Understanding `scale` in R

I'm attempting to comprehend R's definition of ...READ MORE

Jul 6, 2022 in Data Science by avinash
• 1,840 points
49 views
0 votes
0 answers

Explicitly calling return in a function or not

A while back, Simon Urbanek from the ...READ MORE

Jul 6, 2022 in Data Science by avinash
• 1,840 points
46 views
0 votes
0 answers

Getting "NA" when I run a standard deviation

a quick query I read the variable ...READ MORE

Jul 5, 2022 in Data Science by avinash
• 1,840 points
88 views
0 votes
0 answers

Fibonacci Sequence in R

Due of my inexperience with programming and ...READ MORE

Jul 5, 2022 in Data Science by avinash
• 1,840 points
80 views
0 votes
0 answers

Creating an R dataframe row-by-row

In RStudio, if I execute this code: "1 ...READ MORE

Jul 5, 2022 in Data Science by avinash
• 1,840 points
56 views
0 votes
0 answers

How do I get a list of built-in data sets in R?

Please advise on how to obtain the ...READ MORE

Jul 5, 2022 in Data Science by avinash
• 1,840 points
53 views
0 votes
0 answers

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

Say I have some matrix, for example: m ...READ MORE

Jul 5, 2022 in Data Science by avinash
• 1,840 points
52 views
0 votes
0 answers

In R, how to get an object's name after it is sent to a function?

I'm trying to find the opposite of ...READ MORE

Jul 5, 2022 in Data Science by avinash
• 1,840 points
47 views
0 votes
0 answers

R console output only shows most recent command in "if" condition

In RStudio, if I execute this code: "1 ...READ MORE

Jul 5, 2022 in Data Science by avinash
• 1,840 points
40 views
0 votes
1 answer

grepl in R to find matches to any of a list of character strings

Inside of a grepl regular expression, you ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 2,960 points
447 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 30, 2022 in Data Science by avinash
• 1,840 points
67 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 30, 2022 in Data Science by avinash
• 1,840 points
64 views
0 votes
0 answers

Load csv file in R

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

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

What's the difference between "*" and "+" in lm() in R?

Lm is a fitting method for linear ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 2,960 points
161 views
0 votes
1 answer

Import CSV file using R

If there are quotes ("), by using ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 2,960 points
152 views
0 votes
1 answer

Unexpected behavior for setdiff() function in R

Asymmetric difference is provided by 18 setdiff. ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 2,960 points
96 views
0 votes
0 answers

Calculate correlation with cor(), only for numerical columns

I have a dataframe and would like ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 2,960 points
76 views
0 votes
0 answers

Stepwise AIC using forward selection in R

In R, I'm attempting to perform a ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 2,960 points
67 views
0 votes
0 answers

To speed up the tapply function in R, or another function to convert data frame into a matrix

I must turn a sizable dataset into ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 2,960 points
63 views
0 votes
0 answers

understanding durbin-watson test in R

I believe I have a misconception about ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 2,960 points
62 views
0 votes
0 answers

Create a sequence of sequences of numbers

The following sequence should be created in ...READ MORE

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

How to overlay density plots in R?

The second one has 104 usage lines: plot(density(MyData$Column1)) ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 2,960 points
220 views
0 votes
1 answer

Using dcast to widen a data frame

> dcast(z, id ~ item, value.var="freq") ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 2,960 points
83 views
0 votes
1 answer

Problem with sample function in R

The first time works, but after that, ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 2,960 points
82 views