is_datelife_query: Check if input is a 'datelifeQuery' object

View source: R/datelife_query.R

is_datelife_queryR Documentation

Check if input is a datelifeQuery object

Description

is_datelife_query checks for two things to be TRUE or FALSE. First, that input is of class datelifeQuery. Second, that input is a list that contains at least two elements of a datelifeQuery object:

cleaned_names

A character vector of taxon names.

phy

Either NA or a phylo object.

Usage

is_datelife_query(input)

Arguments

input

An object to be checked as an object with essential properties of a 'datelifeQuery' object.

Details

If the object has the correct format but it has a class different than datelifeQuery, the class is not modified.

Value

Is determined by the second condition.


phylotastic/datelife documentation built on June 9, 2024, 6:50 p.m.