Description Usage Arguments Details Value Author(s) Examples
Check to see if an object is of class genalex
as recognised by
the readGenalex
package. With force = TRUE
,
the internal consistency of the data and annotations are checked.
1 2 |
x |
An object that might be of class |
force |
If |
skip.strings |
If |
skip.extra |
If |
verbose |
If |
Two attributes that may commonly be found to differ from inferred
values are "dataset.title"
and "data.file.name"
,
if there have been manipulations to the class. These attributes
cannot be removed from a valid object of class genalex
,
but they can be set to the empty string (""
) to avoid this
check. Alternatively, the option skip.strings = TRUE
may
be set to not check these specific attributes for consistency.
Extra data columns are checked first for existence, then for contents,
then for matching row names. The option skip.extra = TRUE
may be set to not check extra data columns.
TRUE
or FALSE
Douglas G. Scofield
1 2 3 4 5 6 7 8 9 10 11 12 | data(Qagr_adult_genotypes)
is.genalex(Qagr_adult_genotypes)
## create an inconsistent attribute
attr(Qagr_adult_genotypes, "n.loci") <- 20
## this doesn't detect the inconsistency
is.genalex(Qagr_adult_genotypes)
## this detects the inconsistency, returns FALSE
is.genalex(Qagr_adult_genotypes, force = TRUE)
is.genalex(Qagr_adult_genotypes, force = TRUE, verbose = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.