NO missing value find


#1

please can anyone help me the dataset given is not having a single missing value


#2

@pankajchauhan.687 - You can use an inbuilt data set of R like iris data set and mtcars dataset .

If there is some missing value in the data set there is always an option of replacing or removing the missing value.
Some of the techniques are

  1. replace with the mode of the variable if the variable is categorical .
  2. replace with the median of the variable if the variable is numerical .
    3)last option is to delete the row which contains the missing value.

Hope this helps!

Regards,
Hinduja


#3

that’s the problem it doesn’t have any missing value


#4

@pankajchauhan.687
What is the problem that you are facing? Did any function call fail

It is possible that you have

  1. You have empty values
  2. You have incorrect data types

#5

HI pankajchauhan.687,

I think, R by default doesnt consider blanks as missing values or NA.
so you’d need to explicitly convert blanks to NA. you may use the following.

train[train==’’] <- NA
test[test==’’]<- NA

and then check it by -
colSums(is.na(train))
colSums(is.na(test))

Let me know if you see the difference.

Thanks,
Lalit


#6

Thanks for your reply lalit I wil try this…:slight_smile:


#7

Do you know a way to replace missing value of a categorical variable with two values
ie. combination of two in 2:1 ratio…?


#8

oh…!
I forgot say Hi btw…:slight_smile: