Let me explain in short and clear.
Basically, I have an excel file named PT.xlsx
.
One of the columns with a header named No_Days_In_Location
are storing the numbers as a text. (I have checked it all again, confirmed that are only numbers but stored as a text, no alphabets or letters.)
I converted the data in No_Days_In_Location
to numeric by using the command
df_PT$No_Days_In_Location <- as.numeric(df_PT$No_Days_In_Location)
Subsequently, not only did I receive the Warning message: NAs introduced by coercion
, but the most concerning aspect was the disappearance of certain data.
Can you help give me help / advice me in handling the issue like this...