Learn R Programming

poppr (version 2.1.1)

initialize,MLG-method: Methods used for MLG objects

Description

Default methods for accessing and subsetting MLG objects.

Usage

## S3 method for class 'MLG':
initialize(.Object, mlg)

## S3 method for class 'MLG,ANY,ANY,ANY': [(x, i, j, ..., all = FALSE, drop = TRUE)

## S3 method for class 'MLG,ANY,ANY,ANY': [(x, i, j) <- value

## S3 method for class 'MLG': show(object)

## S3 method for class 'MLG': length(x)

## S3 method for class 'MLG,ANY': Ops(e1, e2)

## S3 method for class 'MLG': Math(x)

## S3 method for class 'MLG': Math2(x, digits)

## S3 method for class '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

See Also

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