I was using the following code to get rid of empty cell in my dataframe.
df %>%
# recode empty strings "" by NAs
na_if("") %>%
# remove NAs
na.omit`
it was working fine till recently but now i am getting the following error
Error in na_if():
! Can't convert y to match type of x <tbl_df>.
Run rlang::last_error() to see where the error occurred.
rlang::last_error() <error/vctrs_error_cast> Error in
na_if(): ! Can't convertyto match type ofx<tbl_df>.
I am using r version 4.1.3 and dplyr package 1.1.0
Note: i am getting the same error when using
df %>% mutate_all(~na_if(.,"")) %>%
na.om`it
