I have a Phyloseq object like the following:
My goal is to take a random sample of size n from this object. Even after trying all sampling functions from the Phyloseq package, I am still unable to complete this task. I would have tried other sampling methods but they do not work with Phyloseq objects. I thought about converting it to a dataframe and then sampling, but I am unsure how to convert it back to the same Phyloseq object as before with just fewer rows.
If anyone has a way to take random samples from a phyloseq object, I would greatly appreciate your insight. Thanks!