Both class() and typeof() appear to return very similar outputs on some vectors and lists.
?typeof:
typeof determines the (R internal) type or storage mode of any object
and ?class
R possesses a simple generic function mechanism which can be used for an object-oriented style of programming. Method dispatch takes place based on the class of the first argument to the generic function.
In practice, what are the differences between the two?