SyntaxFix
Write A Post
Hire A Developer
Questions
?max shows you that there is an extra parameter na.rm that you can set to TRUE.
?max
na.rm
TRUE
Apart from that, if you really want to remove the NAs, just use something like:
NA
myvec[!is.na(myvec)]