visible | R Documentation |
This documentation is for developers of poppr. The accessors here are preferred over accessing the elements via the @ symbol. Please use these in your code when accessing MLG objects.
visible(x)
visible(x) <- value
MLG2df(x)
distname(x)
distenv(x)
distname(x) <- value
distenv(x) <- value
distargs(x)
distargs(x) <- value
distalgo(x)
distalgo(x) <- value
cutoff(x)
cutoff(x) <- value
x |
an MLG object |
value |
see details |
These accessors are intended for internal use only. They only affect
MLG objects, not genind objects. Only visible and MLG2df are general for
all forms of MLG. The distargs and cutoff are specific for use in
mlg.filter or any function that offers filtering as an option. The argument
"value" will always take the type defined in the MLG
class.
see details
MLG
genclone
genlight
initialize,MLG-method
levels,MLG-method
unique,MLG-method
## Not run:
# These examples will simply show you what you can do with these
set.seed(5000)
(x <- sample(10, 20, replace = TRUE))
(m <- new("MLG", x))
# Visibility ------------------------------
visible(m) # original
visible(m) <- "contracted"
m # shows contracted MLGS
# Conversion to data frame ----------------
MLG2df(m) # Grab the internal data frame
# Distance function handling --------------
distname(m) # nei.dist
distargs(m) # list()
distalgo(m) # farthest
cutoff(m)
distname(m) <- substitute("diss.dist")
distargs(m) <- list(percent = TRUE)
distalgo(m) <- "average"
cutoff(m)["contracted"] <- 0.2
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.