[adegenet-commits] r263 - in pkg: R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jan 28 18:22:37 CET 2009


Author: jombart
Date: 2009-01-28 18:22:37 +0100 (Wed, 28 Jan 2009)
New Revision: 263

Modified:
   pkg/R/genind2genpop.R
   pkg/man/genind2genpop.Rd
Log:
proceed -> process


Modified: pkg/R/genind2genpop.R
===================================================================
--- pkg/R/genind2genpop.R	2009-01-28 11:48:18 UTC (rev 262)
+++ pkg/R/genind2genpop.R	2009-01-28 17:22:37 UTC (rev 263)
@@ -2,7 +2,7 @@
 # Function genind2genpop
 #########################
 genind2genpop <- function(x,pop=NULL,missing=c("NA","0","chi2"),quiet=FALSE,
-                          proceed.other=FALSE, other.action=mean){
+                          process.other=FALSE, other.action=mean){
 
   if(!is.genind(x)) stop("x is not a valid genind object")
   checkType(x)
@@ -64,7 +64,7 @@
 
   ## handle @other here
   res at other <- x at other
-  if(proceed.other){
+  if(process.other){
       ## auxiliary function doing the job
       fOther <- function(e){
           N <- nrow(x at tab)
@@ -84,7 +84,7 @@
       } # end fOther
 
       res at other <- lapply(res at other, fOther)
-  } # end if(proceed.other)
+  } # end if(process.other)
 
   if(missing != "NA"){
       res <- na.replace(res, method=missing, quiet=quiet)

Modified: pkg/man/genind2genpop.Rd
===================================================================
--- pkg/man/genind2genpop.Rd	2009-01-28 11:48:18 UTC (rev 262)
+++ pkg/man/genind2genpop.Rd	2009-01-28 17:22:37 UTC (rev 263)
@@ -6,7 +6,7 @@
   (genind) into alleles counts per population (genpop).}
 \usage{
 genind2genpop(x,pop=NULL,missing=c("NA","0","chi2"),quiet=FALSE,
-              proceed.other=FALSE, other.action=mean)
+              process.other=FALSE, other.action=mean)
 }
 \arguments{
   \item{x}{an object of class \code{genind}.}
@@ -16,9 +16,9 @@
   \item{missing}{can be "NA", "0", or "chi2". See details for more information.}
   \item{quiet}{logical stating whether a conversion message must be
     printed (TRUE,default) or not (FALSE).}
-  \item{proceed.other}{a logical indicating whether the \code{@other}
-    slot should be proceeded (see details).}
-  \item{other.action}{a function to be used when proceeding the
+  \item{process.other}{a logical indicating whether the \code{@other}
+    slot should be processed (see details).}
+  \item{other.action}{a function to be used when processing the
     \code{@other} slot. By default, 'mean' is used.}
 }
 \details{
@@ -36,12 +36,12 @@
   Chi-squared test. This is obtained by the product of the margins
   sums divided by the total number of alleles.\cr
   
-  === proceeding the \code{@other} slot ===\cr
+  === processing the \code{@other} slot ===\cr
   Essentially, \code{genind2genpop} is about aggregating data per
   population. The function can do the same for all numeric items in the
   \code{@other} slot provided they have the same length (for vectors) or
   the same number of rows (matrix-like objects) as the number of
-  genotypes. When the case is encountered and if \code{proceed.other} is
+  genotypes. When the case is encountered and if \code{process.other} is
   TRUE, then these objects are processed using the function defined in
   \code{other.action} per population. For instance, spatial coordinates
   of genotypes would be averaged to obtain population coordinates.
@@ -62,14 +62,14 @@
   catpop
   summary(catpop)
 
-## proceeding the @other slot
+## processing the @other slot
 data(sim2pop)
 sim2pop$other$foo <- letters
 sim2pop
 dim(sim2pop$other$xy) # matches the number of genotypes
 sim2pop$other$foo # does not match the number of genotypes
 
-obj <- genind2genpop(sim2pop, proceed.other=TRUE)
+obj <- genind2genpop(sim2pop, process.other=TRUE)
 obj$other # the new xy is the populations' centre
 
 pch <- as.numeric(pop(sim2pop))



More information about the adegenet-commits mailing list