Skip to content

Commit

Permalink
more imports form stats pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
dwinter committed Jul 9, 2015
1 parent 0ea4fa0 commit eb2caac
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions NAMESPACE
Expand Up @@ -19,5 +19,10 @@ export(rgenotypes)
export(summarise_bootstrap)
import(adegenet)
import(pegas)
importFrom(stats,complete.cases)
importFrom(stats,dist)
importFrom(stats,fisher.test)
importFrom(stats,na.omit)
importFrom(stats,quantile)
importFrom(stats,rmultinom)
importFrom(stats,var)
4 changes: 3 additions & 1 deletion R/diff_test.R
Expand Up @@ -18,7 +18,9 @@
#' @param nreps number of steps used to simulate p-value (default 2000)
#' @return named vector of p-values testing the null hypothesis these samples
#' where drawn from a panmictic population.
#' @seealso \code{\link{fisher.test}} from base R, which this function wraps
#' @importFrom stats fisher.test
#' @importFrom stats complete.cases
#' @seealso \code{\link{fisher.test}}, which this function wraps
#' @export
#' @examples
#'
Expand Down
2 changes: 2 additions & 0 deletions R/dist.codom.R
Expand Up @@ -19,6 +19,8 @@
#' containing indices to those indivudals in the genind object which where
#' omitted due to having NAs
#' @importFrom stats dist
#' @importFrom stats na.omit
#' @importFrom stats complete.cases
#' @export
#'
#' @references
Expand Down
2 changes: 2 additions & 0 deletions R/summarise_bootstrap.R
Expand Up @@ -26,6 +26,8 @@
#' @return summary.global_harm: mean, .025 and 0.975 percentile and variance for
#' global estimate variance of statistic for each locus based on harmonic mean
# (only applies to D_Jost)
#' @importFrom stats var
#' @importFrom stats quantile
#' @export
#' @examples
#'\dontrun{
Expand Down
2 changes: 1 addition & 1 deletion man/diff_test.Rd
Expand Up @@ -37,6 +37,6 @@ data(nancycats)
diff_test(seploc(nancycats)[[2]], nreps=100)
}
\seealso{
\code{\link{fisher.test}} from base R, which this function wraps
\code{\link{fisher.test}}, which this function wraps
}

0 comments on commit eb2caac

Please sign in to comment.