[adegenet-commits] r256 - pkg/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jan 27 18:12:35 CET 2009


Author: jombart
Date: 2009-01-27 18:12:35 +0100 (Tue, 27 Jan 2009)
New Revision: 256

Added:
   pkg/man/selpopsize.Rd
Log:
Add file.


Added: pkg/man/selpopsize.Rd
===================================================================
--- pkg/man/selpopsize.Rd	                        (rev 0)
+++ pkg/man/selpopsize.Rd	2009-01-27 17:12:35 UTC (rev 256)
@@ -0,0 +1,40 @@
+\encoding{UTF-8}
+\docType{methods}
+\name{selpopsize}
+\alias{selpopsize}
+\alias{selpopsize-methods}
+\alias{selpopsize,ANY-method}
+\alias{selpopsize,genind-method}
+\title{ Select genotypes of well-represented populations}
+\description{
+  The function \code{selpopsize} checks the sample size of each population in
+  a \linkS4class{genind} object and keeps only genotypes of populations
+  having a given minimum size.
+}
+\usage{
+\S4method{selpopsize}{genind}(x,pop=NULL,nMin=10)
+}
+\arguments{
+  \item{x}{a \linkS4class{genind} object}
+  \item{pop}{a vector of characters or a factor giving the population of
+    each genotype in 'x'. If not provided, seeked from x\$pop.}
+  \item{nMin}{the minimum sample size for a population to be
+    retained. Samples sizes strictly less than \code{nMin} will be
+    discarded, those equal to or greater than \code{nMin} are kept.}
+}
+\value{
+  A  \linkS4class{genind} object.
+}
+\author{Thibaut Jombart \email{jombart at biomserv.univ-lyon1.fr} }
+\seealso{\code{\link{seploc}}, \code{\link{repool}}}
+\examples{
+data(microbov)
+
+table(pop(microbov))
+obj <- selpopsize(microbov, 50)
+
+obj
+table(pop(obj))
+
+}
+\keyword{manip}
\ No newline at end of file



More information about the adegenet-commits mailing list