I'm running this line of code from within an R package's function and am getting this error, but when I copy and paste the specific line of code in my command line, I don't get the error. Is there a package difference error? I'm not sure why this is failing within the R package, causing that function to halt.
Error in t.default(.): argument is not a matrix when I run this line of code
counts <- Seurat::GetAssayData(object = obj, slot = "counts") %>% t()