Changing the order of factors in TSE #668
-
|
Hi, I'm new to mia and I wanted to know how factor level order can be changed. Is it possible to set the factor levels to a specific order, so that my reference group is always first? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Do you mean in colData(tse)? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @antagomir, set factor for $variabledata.obj$meta.dat$variable <- factor( Let me know if there's a better way, especially when converting a phyloseq object (with existing factors) to tse. |
Beta Was this translation helpful? Give feedback.
Do you mean in colData(tse)?