There's more…

Since an S4 class has a more rigorous structure, you can set validation rules for the class that you are creating and using. The setValidation() function is the function to set rules for validation. For example, each of the slots of the robustSummary S4 class has numeric values. However, if you mistakenly enter a "character" value, then it will give you a default error message. To handle this type of situation, you could use setValidation(). For more details, follow the document mentioned into the next section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset