I am working on data cleaning techniques in R
I have a data.frame as shown below:
names marks
1 dinesh 20
2 30
3 achyuth 40
4 NA
5 mourya 50
6 NA
7 hima 50
Here in the above result,
- I need to replace the "empty space (or) white space" in the names column with "null".
- And I need to replace the
NA
in the marks column with "0".
Could any one suggest how to get this done?