# Change al "" (blank spaces) to NA values library(tidyverse) data <- data %>% mutate(across(where(is.character), ~na_if(., "")))