get.dates: Retrieve dates data

Description Usage Arguments Author(s) Examples

Description

get.dates is a generic function with a method for obkData, obkSequences and obkContacts objects. It can be used to retrieve dates stored in the object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
get.dates(x, ...)

get.ndates(x, ...)

## S4 method for signature 'obkData'
get.dates(x, data=c("all", "individuals", "records",
    "dna","context", "contacts"), ...)

## S4 method for signature 'obkData'
get.ndates(x, data=c("all", "individuals", "records",
    "dna","context", "contacts"), ...)

## S4 method for signature 'obkSequences'
get.dates(x, ...)

## S4 method for signature 'obkSequences'
get.ndates(x, ...)

## S4 method for signature 'obkContacts'
get.dates(x, ...)

## S4 method for signature 'obkContacts'
get.ndates(x, ...)

Arguments

x

an input object to seek dates 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.

Author(s)

Lulla Opatowski, Thibaut Jombart.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## LOAD DATA ##
data(ToyOutbreak)

## VARIOUS USE OF GET.DATES ##
get.dates(ToyOutbreak)

get.ndates(ToyOutbreak, "records")
get.dates(ToyOutbreak, "records")

get.ndates(ToyOutbreak, "contacts")
get.dates(ToyOutbreak, "contacts")

OutbreakTools documentation built on Oct. 6, 2017, 1:03 a.m.