Open Gian77 opened 4 years ago
HI Gian,
Thanks for posting the workaround. I am having a similar issue. If I understand correctly, your workaround works because the arguments of your function are no longer within phyloseq specific functions but instead are within the subset function which isn't phyloseq specific?
A simplified version of the function I am trying to make is:
subset_function<- function(Data,Rank,Taxa) {
subset_taxa(Data, Rank == Taxa)
}
sf= subset_function(physeq,Phylum,"Acidobacteria")
But I get the same error as you where R cannot find object "Rank". I guess I can do a workaround like you did with using the subset function first.
You're welcome @samd1993, if you use subset() and the re-create a Phyloseq object it will work.
Hello,
I am trying to pass arguments to a functions that has some Phyloseq function within it. However, I didn't understand why it is not working. Please see the code below
This is the error I am getting below
I saw there was another issue open on this but not solved https://github.com/joey711/phyloseq/issues/487 and I found a workaround (see below) but, has been found a real fix yet in Phyloseq?
Thanks a lot in advance, Gan