marknames {mixstock} | R Documentation

## Extract/assign names from mixed stock data

### Description

Extract names of markers and sources from mixed stock data, or invent names for simulated data

### Usage

    marknames(x)
    sourcenames(x)
    mixnames(x)
    locnames(x)
    mixstock.dimnames(H,R)
    label.mixstock.data(x,sourcenames=NULL,marknames=NULL,mixnames=NULL)

### Arguments

`x` | mixstock.data object
`H` | number of markers
`R` | number of sources
`sourcenames` | vector of source names
`marknames` | vector of marker names
`mixnames` | vector of mixed stock names

### Details

mixstock.dimnames uses Roman numerals for markers and capital letters for sources. label.mixstock.data assigns names to the data if the source or mixed components of the data set already have names, or use the same rules as mixstock.dimnames. `locnames` gives a combined vector of source and mixed stock names.

### Value

character vectors of names, or a list with marker and source names

[Package mixstock version 0.9.2 Index]