expand.bugs.data {mixstock} | R Documentation

## convert data to BUGS input format

### Description

expands mixed stock data to BUGS input format (indicator variables)

### Usage

    expand.bugs.data(mixsamp)

### Arguments

`mixsamp` | mixed-sample or mixed stock data matrix (numbers from each source population)

### Value

a matrix of indicator (0/1) variables: number of rows = total number of individuals, number of columns = number of source populations

### Author(s)

Ben Bolker

### Examples

    expand.bugs.data(c(A=4,B=2,C=5))

[Package mixstock version 0.9.2 Index]