The World Health Organization dataset is available here: http://www.filedropper.com/who
When the data is read using fread
(from the data.table package), or read_csv
(from the readr package) some variables are wrapped within letter r, and are shown as character type. Like so:
"\r31.1\r".
I checked the dataset in notepad and indeed it looks weird as these values are wrapped within (' '). However they are numeric, and when the regular read.csv
is used there is no such problem.
What's the reason behind this? How to fix?