[r] Replace missing values with column mean