Module # 7 R Object: S3 vs. S4 assignment
In your blog, discuss the following questions:
How do you tell what OO system (S3 vs. S4) an object is associated with? In r, you can use the isS4 function, which returns true or false.
How do you determine the base type (like integer or list) of an object? typeof() function
What is a generic function? A function that dispatches methods to objects
What are the main differences between S3 and S4? S3 is a less structured, older version.
Comments
Post a Comment