printy: Print Summary of Predomics Object

View source: R/global.visu.R

printyR Documentation

Print Summary of Predomics Object

Description

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.

Usage

printy(obj)

Arguments

obj

An object that can be of type model, population, classifier, experiment, or model collection.

Details

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.

Value

None. The function prints the summary of the object directly to the console.

Author(s)

Edi Prifti (IRD)

Examples

## 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)


predomics/predomicspkg documentation built on Dec. 11, 2024, 11:06 a.m.