Most viewed questions in Data Science

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
579 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
548 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
541 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
540 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
534 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
532 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
522 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
514 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
512 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
508 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
507 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
503 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
492 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
464 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
458 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
434 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
432 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
429 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
423 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
422 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
418 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
410 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
408 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
396 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
385 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
364 views
0 votes
0 answers

what is intelligent automation ?

Feb 19, 2024 in Data Science by Evanjalin
• 28,990 points
314 views
0 votes
0 answers

Can you me IPL dataset for Tableau practice

O READ MORE

Apr 25, 2024 in Data Science by Rahul

edited Mar 5 175 views
0 votes
0 answers

Correlation and heatmap for dataset having numerical and categorical variables

I want to measure the correlation and ...READ MORE

Mar 1, 2023 in Data Science by Chitrolekha

edited Mar 5 169 views
0 votes
0 answers

from diploma EEE to a IT

Hi there,  i am working as a production ...READ MORE

May 3, 2023 in Data Science by Sandeep

edited Mar 5 152 views
0 votes
0 answers

How do you handle failover in cloud environments?

In my cloud application, I can’t afford ...READ MORE

Nov 21, 2024 in Data Science by Priyanka
• 4,500 points
139 views
0 votes
0 answers

Provide solution for this message on jupyter-IndentationError: expected an indented block

please tell me the indentation error  in ...READ MORE

May 15, 2022 in Data Science by Arushi

edited Mar 4 136 views
0 votes
0 answers

Heart Disease Using K-NN

error = [] # calculation error for K ...READ MORE

Sep 15, 2022 in Data Science by Himanshu

edited Mar 4 90 views
0 votes
0 answers

Converting a nested dictionary into Flattened dictionary

Consider a nested dictionary as follows: {'Fruit': ...READ MORE

Dec 23, 2022 in Data Science by Rahul

edited Mar 4 82 views
0 votes
0 answers

What can a data frame do that a tibble cannot?

Tibbles provide a number of benefits over ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points

edited Mar 4 70 views
0 votes
0 answers

Dispatch of `rbind` and `cbind` for a `data.frame`

Let's construct a rbind.myclass() function that just ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points

edited Mar 4 66 views
0 votes
0 answers

Can you use a loop to repeat a cbind function?

I have 40 dataframes from two dataframes ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points

edited Mar 4 64 views
0 votes
0 answers

What can a data frame do that a tibble cannot?

Tibbles provide a number of benefits over ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points

edited Mar 4 63 views
0 votes
0 answers

Hi, I am trying Random Forest on data. when I am fitting "rfr.fit(x_train,y_train)" its giving below error.

ValueError: Expected 2D array, got 1D array ...READ MORE

May 16, 2022 in Data Science by Naresh

edited Mar 4 63 views
0 votes
0 answers

how to use group_by in a function in R

2 1 The following is my code for the ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points

edited Mar 4 60 views
0 votes
0 answers

Dispatch of `rbind` and `cbind` for a `data.frame`

Let's construct a rbind.myclass() function that just ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points

edited Mar 4 57 views
0 votes
0 answers

How to properly use the predict function in R

I'll start by giving you some startup ...READ MORE

Jul 20, 2022 in Data Science by avinash
• 1,840 points

edited Mar 4 57 views
0 votes
0 answers

Concatenate two layers Tensorflow.js

I am new to TensorflowJS and I ...READ MORE

Jan 31, 2023 in Data Science by Tejashwini
• 3,820 points

edited Mar 4 55 views
0 votes
0 answers

Is it mandatory to create all the data graphs while performing EDA?

Hi , while performing EDA on any ...READ MORE

Nov 26, 2022 in Data Science by Edureka

edited Mar 4 51 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

edited Mar 4 48 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

edited Mar 4 45 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

edited Mar 4 42 views
0 votes
0 answers

Why does as.character() return an integer on a list of dates?

I was surpirsed to see R do ...READ MORE

Jul 14, 2022 in Data Science by avinash
• 1,840 points

edited Mar 4 39 views
0 votes
0 answers

Why I cannot save mutate result in r?

This should be a straightforward question. Within ...READ MORE

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

edited Mar 4 37 views