Hi, and welcome!
This is a bit ambiguous without a reprex
. See FAQ: What's a reproducible example (`reprex`) and how do I do one?.
However, assuming that you have a variable with cells equal to ""
you can mutate
mydata %>% mutate(variable = ifelse(variable == "", NA, variable))