I'm trying to replace all of the NAs in a single column of a data frame with a calculated mean value. I have different calculated means for each column, so I need to ensure I'm only replacing NAs in a single column.
Here is the code I'm using:
df$column %>% replace_na(68.9)
I keep getting an error message saying I
can't use $ for an atomic vector, but I don't think I am?