Default methods for accessing and subsetting MLG objects.
Usage
# S4 method for class 'MLG'
initialize(.Object, mlg)
# S4 method for class 'MLG,ANY,ANY,ANY'
x[i, j, ..., all = FALSE, drop = TRUE]
# S4 method for class 'MLG,ANY,ANY,ANY'
x[i, j] <- value
# S4 method for class 'MLG'
show(object)
# S4 method for class 'MLG'
length(x)
# S4 method for class 'MLG,ANY'
Ops(e1, e2)
# S4 method for class 'MLG'
Math(x)
# S4 method for class 'MLG'
Math2(x, digits)
# S4 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