How do you remove NA values from a vector in R?

How do you remove NA values from a vector in R?

a) remove_na()
b) rm.na()
c) na.omit()
d) delete_na()

Answer:

c) na.omit()

Explanation:

The na.omit() function removes NA values from a vector or data set in R.

Reference:

R Programming – Functions MCQ Questions and Answers

Scroll to Top