This function returns a logical based on weather or not the object is in the basic_format.
is_basic_format(obj)
obj | A Taxmap object. |
---|
A logical (TRUE/FALSE).
The "basic_format" is Level 2. in the MicrobiomeR_Formats hierarchy.
Other Validation: is_analyzed_format
,
is_phyloseq_format
,
is_raw_format
,
order_metacoder_data
,
validate_MicrobiomeR_format
,
which_format
# NOT RUN { if(interactive()){ library(MicrobiomeR) if(is_basic_format(MicrobiomeR::raw_silva_2)){ print("It's basic!") } else { fmt <- which_format(MicrobiomeR::raw_silva_2) print("It's not analyzed!") print(sprintf("It's %s!", fmt)) } } # }