4848# ' This function removes any duplicated multilocus genotypes from any specified
4949# ' population strata.
5050# '
51- # ' @param pop a \code{\linkS4class {genind}}, \code{\linkS4class{genclone}}, or
51+ # ' @param pop a \code{\link[adegenet:genind-class] {genind}}, \code{\linkS4class{genclone}}, or
5252# ' \code{\linkS4class{snpclone}} object
5353# '
5454# ' @param strata a hierarchical formula or numeric vector. This will define the
6565# ' can set \code{keep = c(1,3)}.
6666# '
6767# ' @return a clone corrected \code{\linkS4class{genclone}},
68- # ' \code{\linkS4class{snpclone}}, or \code{\linkS4class {genind}} object.
68+ # ' \code{\linkS4class{snpclone}}, or \code{\link[adegenet:genind-class] {genind}} object.
6969# '
7070# ' @details This function will clone correct based on the stratification
7171# ' provided. To clone correct indiscriminately of population structure, set
@@ -205,8 +205,8 @@ clonecorrect <- function(pop, strata = 1, combine = FALSE, keep = 1){
205205# ' Create a new dataset with specified populations or exclude specified
206206# ' populations from the dataset.
207207# '
208- # ' @param gid a \code{\linkS4class {genind}}, \code{\linkS4class{genclone}},
209- # ' \code{\linkS4class {genlight}}, or \code{\linkS4class{snpclone}} object.
208+ # ' @param gid a \code{\link[adegenet:genind-class] {genind}}, \code{\linkS4class{genclone}},
209+ # ' \code{\link[adegenet:genlight-class] {genlight}}, or \code{\linkS4class{snpclone}} object.
210210# '
211211# ' @param sublist a \code{vector} of population names or indexes that the user
212212# ' wishes to keep. Default to \code{"ALL"}.
@@ -351,7 +351,7 @@ popsub <- function(gid, sublist="ALL", exclude=NULL, blacklist=NULL, mat=NULL, d
351351# ' missingno gives the user four options to deal with missing data: remove loci,
352352# ' remove samples, replace with zeroes, or replace with average allele counts.
353353# '
354- # '@param pop a \code{\linkS4class{genclone}} or \code{\linkS4class {genind}}
354+ # '@param pop a \code{\linkS4class{genclone}} or \code{\link[adegenet:genind-class] {genind}}
355355# ' object.
356356# '
357357# '@param type a \code{character} string: can be "ignore", "zero", "mean",
@@ -370,7 +370,7 @@ popsub <- function(gid, sublist="ALL", exclude=NULL, blacklist=NULL, mat=NULL, d
370370# ' instead.
371371# '
372372# '@details These methods provide a way to deal with systematic missing data and
373- # ' to give a wrapper for \code{adegenet}'s \code{ \link{tab}} function.
373+ # ' to give a wrapper for \code{adegenet}'s \code{ \link[adegenet] {tab}} function.
374374# ' ALL OF THESE ARE TO BE USED WITH CAUTION.
375375# '
376376# ' Using this function with polyploid data (where missing data is coded as "0")
@@ -389,7 +389,7 @@ popsub <- function(gid, sublist="ALL", exclude=NULL, blacklist=NULL, mat=NULL, d
389389# ' more diversity.}
390390# ' }
391391# ' }
392- # '@return a \code{\linkS4class{genclone}} or \code{\linkS4class {genind}} object.
392+ # '@return a \code{\linkS4class{genclone}} or \code{\link[adegenet:genind-class] {genind}} object.
393393# '
394394# '@note \emph{"wild missingno appeared!"}
395395# '
@@ -513,12 +513,12 @@ missingno <- function(pop, type = "loci", cutoff = 0.05, quiet=FALSE, freq = FAL
513513# ' Remove all non-phylogentically informative loci
514514# '
515515# ' This function will facilitate in removing phylogenetically uninformative loci
516- # ' from a \code{\linkS4class{genclone}} or \code{\linkS4class {genind}} object.
516+ # ' from a \code{\linkS4class{genclone}} or \code{\link[adegenet:genind-class] {genind}} object.
517517# ' The user has the ability to define what uninformative means by setting a
518518# ' cutoff value for either percentage of differentiating genotypes or minor
519519# ' allele frequency.
520520# '
521- # ' @param pop a \code{\linkS4class{genclone}} or \code{\linkS4class {genind}}
521+ # ' @param pop a \code{\linkS4class{genclone}} or \code{\link[adegenet:genind-class] {genind}}
522522# ' object.
523523# '
524524# ' @param cutoff \code{numeric}. A number from 0 to 1 defining the minimum
@@ -658,12 +658,12 @@ informloci <- function(pop, cutoff = 2/nInd(pop), MAF = 0.01, quiet = FALSE){
658658# ' diversity statistics. The tradeoff was the fact that this broke all other
659659# ' analyses as they relied on allele frequencies and the missing alleles are
660660# ' treated as extra alleles. This function removes those alleles and returns a
661- # ' \code{\linkS4class{genclone}} or \code{\linkS4class {genind}} object where
661+ # ' \code{\linkS4class{genclone}} or \code{\link[adegenet:genind-class] {genind}} object where
662662# ' allele frequencies are coded based on the number of alleles observed at a
663663# ' single locus per individual. See the examples for more details.
664664# '
665- # ' @param poly a \code{\linkS4class{genclone}}, \code{\linkS4class {genind}}, or
666- # ' \code{\linkS4class {genpop}} object that has a ploidy of > 2
665+ # ' @param poly a \code{\linkS4class{genclone}}, \code{\link[adegenet:genind-class] {genind}}, or
666+ # ' \code{\link[adegenet:genpop-class] {genpop}} object that has a ploidy of > 2
667667# ' @param newploidy for genind or genclone objects: if \code{FALSE} (default),
668668# ' the user-defined ploidy will stay constant. if \code{TRUE}, the ploidy for
669669# ' each sample will be determined by the maximum ploidy observed for each
@@ -673,8 +673,8 @@ informloci <- function(pop, cutoff = 2/nInd(pop), MAF = 0.01, quiet = FALSE){
673673# ' if \code{TRUE}, objects with uneven ploidies will have zeroes appended to all
674674# ' loci to allow conversion to genpop objects. Defaults to \code{FALSE}.
675675# '
676- # ' @return a \code{\linkS4class{genclone}}, \code{\linkS4class {genind}}, or
677- # ' \code{\linkS4class {genpop}} object.
676+ # ' @return a \code{\linkS4class{genclone}}, \code{\link[adegenet:genind-class] {genind}}, or
677+ # ' \code{\link[adegenet:genpop-class] {genpop}} object.
678678# '
679679# ' @details The genind object has two caveats that make it difficult to work
680680# ' with polyploid data sets:
0 commit comments