I have the attached csv file. How can I fill the blank cells with NA or remove them?
I have tried following codes from Change the Blank Cells to "NA" but nothing happens.
sm2=read.csv('sample_info_2.csv',header=T, na.strings=" ")
sm3 <- sm2 %>% mutate_all(na_if,"")
sm3=sm2[complete.cases(sm2),]
I want to remove the blank cells or fill them with NA. Any help? Best, Zillur