MLG-method: Methods used for MLG objects

Description Usage Arguments Author(s) See Also

Description

Default methods for accessing and subsetting MLG objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## S4 method for signature 'MLG'
initialize(.Object, mlg)

## S4 method for signature 'MLG,ANY,ANY,ANY'
x[i, j, ..., all = FALSE, drop = TRUE]

## S4 replacement method for signature 'MLG,ANY,ANY,ANY'
x[i, j] <- value

## S4 method for signature 'MLG'
show(object)

## S4 method for signature 'MLG'
length(x)

## S4 method for signature 'MLG,ANY'
Ops(e1, e2)

## S4 method for signature 'MLG'
Math(x)

## S4 method for signature 'MLG'
Math2(x, digits)

## S4 method for signature 'MLG'
Summary(x, ..., na.rm = FALSE)

Arguments

.Object

a character, "MLG"

mlg

a vector where each element assigns the multilocus genotype of that individual in the data set.

x

an MLG object

i

a vector of integers or logical values to index the MLG vector.

j

One of

  • "original"

  • "expanded"

  • "contracted"

  • "custom"

...

passed on to summary methods

all

a logical value indicating whether or not to return the subset of all MLG values or only the numeric.

value

the vector of MLGs to replace. For internal use only.

object

an MLG object.

e1

an MLG object

e2

a number

digits

the number of digits to retain

na.rm

passed on to summary methods

Author(s)

Zhian N. Kamvar

See Also

MLG genclone snpclone visible unique,MLG-method levels,MLG-method


poppr documentation built on Jan. 13, 2021, 8:33 a.m.