n | R Documentation |
This function returns the number of unique entities in a GWAS Catalog object.
n(x, unique = FALSE)
## S4 method for signature 'studies'
n(x, unique = FALSE)
## S4 method for signature 'associations'
n(x, unique = FALSE)
## S4 method for signature 'variants'
n(x, unique = FALSE)
## S4 method for signature 'traits'
n(x, unique = FALSE)
x |
A studies, an associations, a variants, or a traits object. |
unique |
Whether to count only unique entries ( |
An integer scalar.
# Determine number of studies
n(studies_ex01)
# Determine number of associations
n(associations_ex01)
# Determine number of variants
n(variants_ex01)
# Determine number of traits
n(traits_ex01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.