Question: what is the difference between cat and print in r?
Answer: An essential difference between cat and print is the class of the object they return. This difference has practical consequences for what you can do with the returned object. cat returns an object of class NULL .