Hello there!
I needed to merge different datasets in R. During this data has been lost. I need to know where / when / in which step(s) this happened, so I need to count the number of values for a specific column (in this case, Calcium and Ketosis), over the different merged / new datasets.
I now am using length for calcium and that works, but lit up a complete new error too, that's for another post.
When I try using
length(which(DfKetosisUterusRaw$Ketosis > 0 ))
for the DfKetosisUterusRaw$Ketosis I get the following:

When I then try to change the $ketosis into numeric i get the following
So at this point, I am stuck. Apparently Ketosis is seen as a factor and I cannot seem to get the column as numeric. Maybe some of you have an idea what I am doing wrong?
Any explanation would be very much appreciated. Thanks in advance.