Posts by mvbueno • 23 points
1 post
-
1
votes1
answer78
viewsQ: How to replace lost data frame values with the average of each column in R?
I have this table: tabela<-data.frame(v1 = c(1,NA,3,5,4), v2 =c(NA,NA,1,2,4), v3 = c(6,5,4,7,NA)) I need the lost values of each column to receive the average values of that column. How to do…