I have 2 questions concerning data relabeling:
1/ Some of variables have "NA" value. How R read this "NA" values? It thinks that the data is absent of code it as another standard factor?
2/ I want to recode this "NA" values to make it easier to analyze. To do so, I'm trying to create my own function that has 2 inputs (column name and replacement values)
However, when I run it nothing happens to the dataset. What is wrong with the function?
Hi everybody!
I have 2 questions concerning data relabeling: 1/ Some of variables have "NA" value. How R read this "NA" values? It thinks that the data is absent of code it as another standard factor?
2/ I want to recode this "NA" values to make it easier to analyze. To do so, I'm trying to create my own function that has 2 inputs (column name and replacement values) However, when I run it nothing happens to the dataset. What is wrong with the function?
Thank you in advance!