I had used this command (given below) to replace Null values with mean but how can I replace null values of char datatype in R studio?
dataset$Item_Weight=
ifelse(is.na(dataset$Item_Weight),
ave(dataset$Item_Weight,FUN=function(x)
mean(x,na.rm = TRUE)),dataset$Item_Weight)