Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

How to replace values with na in r

# Change al "" (blank spaces) to NA values
library(tidyverse)
data <- data %>%
  mutate(across(where(is.character), ~na_if(., "")))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #replace #values #na
ADD COMMENT
Topic
Name
8+7 =