MLG-method: Methods used for MLG objects

initialize,MLG-methodR Documentation

Methods used for MLG objects

Description

Default methods for accessing and subsetting MLG objects.

Usage

## 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 May 29, 2024, 5:54 a.m.