is.gosummaries {GOsummaries} | R Documentation

## Functions for working with gosummaries object

### Description

Functions for working with gosummaries object

### Usage

    is.gosummaries(x)

    ## S3 method for class 'gosummaries'
    print(x, ...)

    ## S3 method for class 'gosummaries'
    x[i, ...]

    add_to_slot.gosummaries(x, slot, values)

### Arguments

`x` | a gosummaries object
`...` | not used
`i` | index
`slot` | the component slot name to be filled (e.g Title, Percentage, etc.)
`values` | list of values where each element corresponds to one component
`gosummaries` | a gosummaries object

### Details

Method [ ensures that subsetting gosummaries object will not lose the attributes.

`add_to_slot.gosummaries` allows to add values to specific slots in the gosummaries object

### Author(s)

Raivo Kolde <raivo.kolde@eesti.ee>

### Examples

    data(gs_kmeans)

    # Add new title to the components
    gs_kmeans_new = add_to_slot.gosummaries(gs_kmeans, "Title",
    as.list(paste("K-means cluster", 1:length(gs_kmeans))))

    print(gs_kmeans_new)

[Package GOsummaries version 2.18.0 Index]