SyntaxFix
Write A Post
Hire A Developer
Questions
Use suppressWarnings():
suppressWarnings()
suppressWarnings(as.numeric(c("1", "2", "X"))) [1] 1 2 NA
This suppresses warnings.