Why does DESeq2 convert numeric columns to factor during differential expression analysis?
Edited:

It's the "as.matrix" that is causing the problem.  When I use that on my sample annotation data, and make dds with that, it turns my numbers into factors