I'm working on a replication of the study for this particular data that you could find in this link, the data is named AProrok_AJPS.tab
, please click on Download and then you can choose the RData format.
I want to remove all the rows whose value in a specific column is 1, so with this code:
df <- data[data$unknownleader!=1,]
After that, however, all the data becomes NA, it becomes all blank basically. I tried to change the type of data between integer, factor, class, etc. but all resulted into the same problem. I am not sure what is with this data file that causes this problem. Could anyone please investigate and show me a possible way to fix it?