Coercion of S4 objects to lists can be applied to explore their content, avoiding errors caused by their validation.
# S4 method for taxlist as.list(x, ...)## Default function S4_to_list(x)
## Default function S4_to_list(x)
An object of class '>taxlist or any S4 class.
'>taxlist
further arguments passed to or from other methods.
An object of class list.
list
The function 'S4_to_list' transforms any S4 object to a list setting slots to elements of the list and it is running internally in the method 'as.list' for '>taxlist objects.
'S4_to_list'
'as.list'
# NOT RUN { library(taxlist) data(Easplist) Easplist <- as.list(Easplist) class(Easplist) # }
Run the code above in your browser using DataLab