InseadDataAnalytics / INSEADAnalytics

Other
122 stars 1.31k forks source link

Relabeling of factor values #129

Open AsyaNech opened 6 years ago

AsyaNech commented 6 years ago

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? image

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) image However, when I run it nothing happens to the dataset. What is wrong with the function?

Thank you in advance!