Most answered questions in Data Science

0 votes
1 answer

How to establish a connection to a remote Redash database using R?

To connect to a Redash database using ...READ MORE

Feb 17, 2023 in Data Science by anonymous
373 views
0 votes
1 answer

Using group by on multiple columns

Group By X means to put all those with ...READ MORE

Sep 3, 2022 in Data Science by narikkadan
• 63,420 points
402 views
0 votes
1 answer

Finding duplicate rows in SQL Server

Use this : select o.orgName, oc.dupeCount, o.id from organizations ...READ MORE

Aug 14, 2022 in Data Science by narikkadan
• 63,420 points
319 views
0 votes
1 answer

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

It looks like there's a small issue ...READ MORE

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

Forecast Package from R in Python

Yes, you can use the R forecast ...READ MORE

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

How to use plotly in R shiny

Here's a corrected version of your code: # ...READ MORE

Sep 8, 2023 in Data Science by anonymous
• 1,180 points
397 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
222 views
0 votes
1 answer

sample function in R

It seems like you are experiencing an ...READ MORE

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

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

Yes, you can specify your working directory ...READ MORE

Sep 8, 2023 in Data Science by anonymous
• 1,180 points
347 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
• 3,040 points
583 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
• 3,040 points
2,386 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
• 3,040 points
519 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
• 3,040 points
256 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
• 3,040 points
681 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
• 3,040 points
284 views
0 votes
1 answer

How to implement Knn-algorithm without using k-nn function in r?

I created an example that demonstrates the ...READ MORE

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

What does |> (pipe greater than) mean in R?

The "pipe" operator in R is |>. ...READ MORE

Jun 14, 2022 in Data Science by Sohail
• 3,040 points
1,103 views
0 votes
1 answer

The difference between Map() and map () from Purrr package in R

The tilde just indicates to the map ...READ MORE

Jun 14, 2022 in Data Science by Sohail
• 3,040 points
268 views
0 votes
1 answer

Filter multiple values on a string column in dplyr

The filter() function is used to select ...READ MORE

Jun 14, 2022 in Data Science by Sohail
• 3,040 points
802 views
0 votes
1 answer

Changing column names of a data frame

import pandas as pd #define DataFrame df = pd.DataFrame({'team':['A', ...READ MORE

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

rnorm function in R - Usage

y = rnorm(12, rep(c(1,2,1), each=4, 0.2)) I can ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 3,040 points
270 views
0 votes
1 answer

Add two lines on graph using abline in R

I am using "y 0+x" to fit ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 3,040 points
371 views
0 votes
1 answer

Why is it not advisable to use attach() in R, and what should I use instead?

There is one more option that applies ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 3,040 points
274 views
0 votes
1 answer

How To Create Vector of Vector In R

Create a list: List() on x returns x[[1]] ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 3,040 points
261 views
0 votes
1 answer

plotting in different shapes using pch= argument

plot(Sepal.Length ~ Petal.Length, ...READ MORE

Jun 23, 2022 in Data Science by Sohail
• 3,040 points
276 views
0 votes
1 answer

Creating new Functions with Linear Regression in R :

When we want to create a model ...READ MORE

Jun 1, 2022 in Data Science by Sohail
• 3,040 points
342 views
0 votes
1 answer

R cbind with get paste

This is how we use column names x ...READ MORE

Jun 1, 2022 in Data Science by Sohail
• 3,040 points
383 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
• 3,040 points

edited Nov 28, 2023 by Soumya 20,553 views
0 votes
1 answer

do-while loop in R

Unlike for and while loops, which test the loop condition at ...READ MORE

Jun 1, 2022 in Data Science by Sohail
• 3,040 points
406 views
0 votes
1 answer

R package dplyr reinstall every instance

In R, there are two steps of ...READ MORE

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

How to make loop for one-at-a time logistic regression in R?

You're probably looking for something similar to ...READ MORE

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

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

percent in percent "returns a vector of ...READ MORE

Jun 20, 2022 in Data Science by Sohail
• 3,040 points
412 views
0 votes
1 answer

Test if a vector contains a given element

1. Making use of the std::count function Counting ...READ MORE

Jun 20, 2022 in Data Science by Sohail
• 3,040 points
291 views
0 votes
1 answer

Converting xlsx to xls using Microsoft Office Compitablity Pack's excelcnv

Simply rearranging the positions of the parameters ...READ MORE

Mar 25, 2022 in Data Science by gaurav
• 23,260 points
759 views
0 votes
0 answers

what is intelligent automation ?

Feb 19 in Data Science by Evanjalin
• 360 points
52 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
767 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
374 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
264 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
529 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
158 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
174 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
247 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
200 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
275 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
217 views