Learn R Programming

hierarchicalDS (version 3.0)

stack_data_misID: function to stack data for midID updates (going from four dimensional array to a two dimensional array including observed groups

Description

function to stack data for midID updates (going from four dimensional array to a two dimensional array including observed groups

Usage

stack_data_misID(Data, G.obs, g.tot.obs, n.Observers, n.transects,
  n.species, stacked.names, factor.ind)

Arguments

Data

4-d dataset

G.obs

matrix giving the total numer of groups observed at least once by species and transect

g.tot.obs

total number of observations for animals seen at least once

n.Observers

vector giving number of observers per transect

n.transects

number of transects

n.species

number of species

stacked.names

column names for new stacked dataset

factor.ind

a vector of indicator variables (1 = factor/categorical variable, 0 = continuous variable)

Value

a stacked dataset (in matrix form)