is.gosummaries {GOsummaries} | R Documentation |
Functions for working with gosummaries object
is.gosummaries(x) ## S3 method for class 'gosummaries' print(x, ...) ## S3 method for class 'gosummaries' x[i, ...] add_to_slot.gosummaries(x, slot, values)
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 |
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
Raivo Kolde <raivo.kolde@eesti.ee>
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)