Write a custom function which will replace all the missing values in a vector with the mean of values.
Answer / Saurabh Vishnoi
```Rnncreate_mean_imputation_function <- function(x) {n mean_value <- mean(x, na.rm = TRUE)n x[is.na(x)] <- mean_valuen return(x)n}n```
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you understand by data visualization in R using ggplot2?
What is white noise model in r?
Explain how R commands are written?
What is the use of “next” statement in R?
How would you facet the data using ggplot2 package?
What is data structure in r?
What is recursive function in r?
Which data object in r is used to store and process categorical data?
How many data structures does r language have?
What do you understand by a workspace in r programming language?
How would you find the number of missing values in a dataset and remove all of them?
What is transpose?