R: NA in factor level & unable to use as is.na for manipulation

r
datamanipulation

#1

queryUpload.csv (1.5 KB)

Hi

One of my variable contains NA as factor level. I want to do data manipulation on NA rows, but it is not showing in is.na as NA is another level of factor. How can i change. sample file is attached.
Please help !


#2

@ParindDhillon
Hey there,
I was able to get a vector of NAs in driver_id variable without dealing with it being of type factor.
But still what you can do is :

is.na(as.integer(dataframe_name$variable_name))

Tell me if this helps you.