Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ProcMod
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LECASofts
ProcMod
Commits
f3382025
Commit
f3382025
authored
Oct 01, 2019
by
Eric Coissac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch documentation of .getPermutateMatrix
parent
6a79139b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
6 deletions
+35
-6
LICENCE-CECILL-2.1.txt
LICENCE-CECILL-2.1.txt
+0
-0
corls_test.R
R/corls_test.R
+6
-6
internal.getPermuteMatrix.Rd
man/internal.getPermuteMatrix.Rd
+29
-0
No files found.
LICENCE-CECILL-2.1
→
LICENCE-CECILL-2.1
.txt
View file @
f3382025
File moved
R/corls_test.R
View file @
f3382025
...
...
@@ -6,6 +6,11 @@ NULL
#' Generate permutation matrix according to a schema.
#'
#' The permutation schema is defined using the `how` function.
#' The implementation of this function is inspired
#' from the VEGAN package and reproduced here to avoid an extra
#' dependency on an hidden vegan function.
#'
#' @param permutations a list of control values for the permutations as returned
#' by the function \code{\link[permute]{how}}, or the number of
#' permutations required.
...
...
@@ -18,11 +23,6 @@ NULL
#' @note Internal function do not use.
#'
#' @rdname internal.getPermuteMatrix
#' The permutation schema is defined using the `how` function.
#' The implementation of this function is inspired
#' from the VEGAN package and reproduced here to avoid an extra
#' dependency on an hidden vegan function.
#'
.getPermuteMatrix
=
function
(
permutations
,
n
,
strata
=
NULL
)
{
if
(
length
(
permutations
)
==
1
)
{
...
...
@@ -30,7 +30,7 @@ NULL
}
if
(
!
missing
(
strata
)
&&
!
is.null
(
strata
))
{
if
(
inherits
(
permutations
,
"how"
)
&&
is.null
(
permute
::
getBlocks
(
permutations
)))
permute
::
setBlocks
(
permutations
)
<-
strata
setBlocks
(
permutations
)
<-
strata
}
if
(
inherits
(
permutations
,
"how"
))
permutations
<-
permute
::
shuffleSet
(
n
,
control
=
permutations
)
...
...
man/internal.getPermuteMatrix.Rd
0 → 100644
View file @
f3382025
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/corls_test.R
\name{.getPermuteMatrix}
\alias{.getPermuteMatrix}
\title{Generate permutation matrix according to a schema.}
\usage{
.getPermuteMatrix(permutations, n, strata = NULL)
}
\arguments{
\item{permutations}{a list of control values for the permutations as returned
by the function \code{\link[permute]{how}}, or the number of
permutations required.}
\item{n}{numeric; the number of observations in the sample set.
May also be any object that nobs knows about;
see \code{\link[permute]{nobs}} methods.}
\item{strata}{A factor, or an object that can be coerced to a
factor via as.factor, specifying the strata for permutation.}
}
\description{
The permutation schema is defined using the `how` function.
The implementation of this function is inspired
from the VEGAN package and reproduced here to avoid an extra
dependency on an hidden vegan function.
}
\note{
Internal function do not use.
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment