SyntaxFix
Write A Post
Hire A Developer
Questions
You can call max(vector, na.rm = TRUE). More generally, you can use the na.omit() function.
max(vector, na.rm = TRUE)
na.omit()