I am trying to recode (using dplyr’s recode) all the values that are NULL to “NA”. The reason for that is that I would like to report missing values and those that are NULL cannot be reported as such so that’s why I decided to do this transformation. However am getting the following error:
Error in UseMethod(“recode”) :
no applicable method for ‘recode’ applied to an object of class “list”
I thought of unnesting this column and then apply recoding but this is not possible either:
Error: Each column must either be a list of vectors or a list of data frames
So the question would be: how would you recode values in list columns?