Most viewed questions in Data Science

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
255 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
• 3,040 points
245 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
• 3,040 points
241 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
239 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
237 views
0 votes
1 answer

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

It appears that you are experiencing some ...READ MORE

Sep 8, 2023 in Data Science by anonymous
• 1,180 points
234 views
0 votes
1 answer

Difference between the == and %in% operators in R

According to help('percent in percent'), percent in ...READ MORE

Jun 23, 2022 in Data Science by Sohail
• 3,040 points
229 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
• 3,040 points
226 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
225 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
225 views
0 votes
1 answer

Reasons for using the set.seed function

The requirement is a desire for repeatable ...READ MORE

Jun 20, 2022 in Data Science by Sohail
• 3,040 points
221 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
209 views
0 votes
1 answer

How to join (merge) data frames (inner, outer, left, right)

The merge function and its optional parameters ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 3,040 points
203 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
• 3,040 points
202 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
198 views
0 votes
1 answer

unique() for more than one variable

df <- data.frame(yad = c("BARBIE", "BARBIE", "BAKUGAN", ...READ MORE

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

Determine the data types of a data frame's columns

I'm using R and have loaded data ...READ MORE

Jun 1, 2022 in Data Science by avinash
• 1,840 points
185 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
181 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
180 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
176 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
175 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
172 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
166 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
166 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
163 views
0 votes
0 answers

how to make 2 separate substrings from strsplit in R

When it comes to accessing the elements ...READ MORE

Jun 13, 2022 in Data Science by Avinash
• 1,260 points
158 views
0 votes
0 answers

what is intelligent automation ?

Feb 19 in Data Science by Evanjalin
• 360 points
63 views