nOrganisms {FindMyFriends} | R Documentation

## Get the number of organisms represented in a pangenome

### Description

This method returns the current number of organisms in a pgVirtual subclass. This is also the result of calling `length()` on the object.

### Usage

    nOrganisms(object)

    ## S4 method for signature 'pgVirtual'
    nOrganisms(object)

### Arguments

`object` | A pgVirtual subclass

### Value

An integer giving the number of organisms

### Methods (by class)

- `pgVirtual`: The number of organisms in the pangenome for pgVirtual subclasses.

### Examples

    testPG <- .loadPgExample()
    nOrganisms(testPG)

[Package FindMyFriends version 1.19.0 Index]