sequential.seqsubmat: Sequential sequential.submatrix

Description Usage Arguments Value Author(s) See Also Examples

View source: R/sequential.seqsubmat.R

Description

Applies sequential.submatrix sequentially to a set of gap sizes, with window.size =1

Usage

1
2
sequential.seqsubmat(dataset, sampl.columns, group.column, gap.sizes,
n.replicates.limit)

Arguments

dataset

name of the matrix or dataframe to analyze

sampl.columns

numbers of the consecutive columns with the (daily) sampling data, e.g. 4:180

group.column

name or index number of the column containing the taxa or groups to analyse separately, e.g. 3 or "Family"; if NULL, all records will be used together

gap.sizes

integer vector of the size(s) of the gaps between sampling days. Must be either 0 (for no gap) or a vector of positive integers.

n.replicates.limit

Maximum number of replicates allowed

Value

This function returns a list of submatrices

Author(s)

A. Marcia Barbosa

See Also

sequential.submatrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data(roadkills)

seqsubmats <- sequential.seqsubmat(dataset = roadkills, 
sampl.columns = 4:ncol(roadkills), group.column = "taxon", gap.sizes = 1:4, 
n.replicates.limit = 7)

names(seqsubmats)

# seqsubmats for gap 0 (baseline scenario) must be obtained separately:
seqsubmats.baseline <- sequential.seqsubmat(dataset = roadkills, 
sampl.columns = 4:ncol(roadkills), group.column = 3, gap.sizes = 0, 
n.replicates.limit = 7)

names(seqsubmats.baseline)

DeadCanMove documentation built on May 2, 2019, 6:48 p.m.