This function returns TRUE if the object is a nugget. If flavour is
specified, the function returns TRUE only if the object is a nugget of
the specified flavour.
Usage
is_nugget(x, flavour = NULL)
Arguments
- x
an object to be tested
- flavour
a character string specifying the flavour of the nugget.
Value
A logical value indicating whether the object is a nugget.