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 is using all() and any()?
What are functions of Random forest in R?
What are applications of Predictive analysis in R?
What do you understand by R cluster analysis?
What is function in r?
What is variance in r?
How to remove all the objects?
What is Descriptive analysis in R?
Mention how you can produce co-relations and covariances?
How would you fit a linear model over a scatter-plot?
Why the stepaic()?
Explain how to access list elements in r?