I have a table, let's say:
 0 4.5  12  14  24  36  47 
 6   1   1   1   7   1   3 
I want to remove the column labeled 0 if it exists in the table. The command t <- t[,!'0', with=FALSE] did not give me the desired outcome (it resulted in an error).
 
     
    