I am trying to replace NA with 0 for some specific variables irrespective of their positions. i wrote below code, but getting some error..
data1[, starts_with("Year_")][is.na(data1[, starts_with("Year_")])] <- 0
i got the below error
Error: No tidyselect variables were registered 
Call `rlang::last_error()` to see a backtrace
I have installed dplyr, tidyr, tidyselect, but still i am getting this error, can anyone help me on this matter.
 
     
    