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? |
Answered by
antagomir
Feb 8, 2025
Replies: 2 comments 4 replies
|
Do you mean in colData(tse)? |
2 replies
Answer selected by
antagomir
|
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. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you mean in colData(tse)?