printy | R Documentation |
This function prints a summary of a given object, identifying its type (model, population, classifier, experiment, or model collection) and calling the appropriate print function to display relevant information about the object.
printy(obj)
obj |
An object that can be of type model, population, classifier, experiment, or model collection. |
The function checks the type of the provided object using 'isModel', 'isPopulation', 'isClf', 'isExperiment', and 'isModelCollection' functions. Based on the object type, it prints a summary: - **Model**: Calls 'printModel' with a detailed description of the model. - **Population**: Calls 'printPopulation', showing a summary of the population of models. - **Model Collection**: Calls 'printModelCollection' to show a summary of a collection of models. - **Experiment**: Calls 'printExperiment' to display experiment details. - **Classifier**: Calls 'printClassifier' for classifier details. If the object type is not recognized, an error message is printed.
None. The function prints the summary of the object directly to the console.
Edi Prifti (IRD)
## Not run:
# Assuming 'model', 'population', 'classifier', 'experiment', and 'model_collection' are valid objects
printy(model)
printy(population)
printy(classifier)
printy(experiment)
printy(model_collection)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.