Description Usage Arguments Author(s) Examples
get.individuals
is a generic function with a method for
obkData, obkSequences and
obkContacts objects. It can be used to retrieve
individuals identifiers stored in the object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | get.individuals(x, ...)
get.nindividuals(x, ...)
## S4 method for signature 'obkData'
get.individuals(x,
data=c("all", "individuals", "records", "contacts", "dna"), ...)
## S4 method for signature 'obkData'
get.nindividuals(x,
data=c("all", "individuals", "records", "contacts", "dna"), ...)
## S4 method for signature 'obkSequences'
get.individuals(x, ...)
## S4 method for signature 'obkSequences'
get.nindividuals(x, ...)
## S4 method for signature 'obkContacts'
get.individuals(x, ...)
## S4 method for signature 'obkContacts'
get.nindividuals(x, ...)
|
x |
an input object to seek individuals from. |
data |
a character string indicating the name of the data field to look for. It can be 'all'(default), 'individuals', 'records' or 'context'. |
... |
currently not used. |
Thibaut Jombart, Lulla Opatowski, Simon Frost.
1 2 3 4 5 6 7 8 9 10 11 | ## LOAD DATA ##
data(ToyOutbreak)
## VARIOUS USE OF GET.INDIVIDUALS ##
get.individuals(ToyOutbreak)
get.nindividuals(ToyOutbreak, "records")
get.individuals(ToyOutbreak, "records")
get.nindividuals(ToyOutbreak, "contacts")
get.individuals(ToyOutbreak, "contacts")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.