Handling NA in R | is.na, na.omit & na.rm Functions for Missing Values

preview_player
Показать описание

The R code of this tutorial:

### Load data
data("airquality")

### Find missing values

### Count missing values

### Omit missing values

### Remove missing values
Рекомендации по теме
Комментарии
Автор

I have been following your tutorials for a couple of days now. I want to say thank you, they are truly direct and straight to the point. I wish that you would offer consultation to students even if you decide to charge a price on it. Because sometimes one might get stuck and not know what to do.

careenevans
Автор

Directly answered what I was looking for - Thank you!
I have used 'drop_na()' as oppose to 'na.omit()' for the most part, but always good to know alternative ways of doing things.

ezhankhan
Автор

Thank you for the good lesson; explained very clearly.

WaayoArag.
Автор

Very clear and succinct. All the info I needed clearly explained. 👍🏾

shambo
Автор

Love it, thank you one more time dude! Love the way you prepared your lessons ´cause they are really short, focus on an specific context and finally you gave us multiple solutions for an scenario, so thats the way it must be.

anthonyfernandezgonzalez
Автор

Awesome content! Very well demostrated!

mycountryfarm
Автор

Tabulated value and calculated value in t-test normal distribution by plot in R programming

mdiqbal
Автор

Thank you so much for the well-explained video. Keep on posting them please. You are doing a great job!

shirinisabekova
Автор

Thank you so much. Easiest method to remove NAs.

jababnamgay
Автор

Hello i have a question!

Should you always remove missing values in dataset (especially for public data)? Or do we need to consider the proportion of missing data, missing value type (MCAR, MAR, NMAR), and skewness of the data?

I’m really struggled with this particular issue (not the technique, but the judgement as to remove missing values or not), Please shed me a light and thanks!

atthoriqpp
Автор

Your videos are amazing and easy to understand! Thank you!!!

eapenirm
Автор

excellent joachim, perfectly explained

arunbioinfo
Автор

hi, i'm trying to do cov. with two groups of values, but one has NAs and R doesn't allow me to remove themwhan i do the cov, and if i rewrite the two groups without NA they are different in lenght, so cov can't be done, what i can do? ;(

francesco
Автор

Excellent explanation! You are a fantastic teacher!

multitaskprueba
Автор

Thank you so much! You have been such a good help.

roshnyabraham
Автор

hi, your video demonstration is very useful. keep it up !

malakasamaraweera
Автор

when you ran na.omit(airquality) before mean(airquality$ozone) already rows with NAs were deleted, giving you a complete numeric dataset, then why mean(airquality$ozone) is returning NA again....

sung
Автор

I am trying to use ggscatter but I have many NAs in y column and no correlation coefficient appears. Is there any way of ignoring these NAs or changing them to "0"? please help me, thank you.

lsjenny
Автор

How to deal with the missing data for catergory variable, please?

organ
Автор

na.omit is removing the whole row. what if I do not remove the whole row? Is there any way I can plot geom_line without omitting na? The plot needs to ignore the point where there is a na?

tirthanandi