I want to create a sequence but my variable has missing values like this
a <- as.numeric(c(19,20,22,"NA",44,55,10,40))
seq(min(a),max(a),10)
I get this error
Error in seq.default(min(a), max(a), 10) :
'from' cannot be NA, NaN or infinite
Can I exclude the missing values from seq function? Without modifying the variables?