You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I think) subset_samples() and subset_taxa() will drop samples and taxa where the subsetting condition evaluates to NA. This is consistent with base R's subset() and dplyr's filter(), but is can be dangerous if the user is unaware. Mistakes seem especially likely when using subset_taxa(). For example, suppose you wanted to remove all ASVs classified as Chloroplast. You might try
ps.filt<- subset_taxa(ps, order!="Chloroplast")
but this would drop all taxa with order == "Chloroplast" as well as taxa where order is NA.
The text was updated successfully, but these errors were encountered:
(I think)
subset_samples()
andsubset_taxa()
will drop samples and taxa where the subsetting condition evaluates to NA. This is consistent with base R'ssubset()
and dplyr'sfilter()
, but is can be dangerous if the user is unaware. Mistakes seem especially likely when usingsubset_taxa()
. For example, suppose you wanted to remove all ASVs classified as Chloroplast. You might trybut this would drop all taxa with
order == "Chloroplast"
as well as taxa whereorder
isNA
.The text was updated successfully, but these errors were encountered: