vfrequency: Variable frequency tag sequence sample

Description Usage Arguments Value Examples

View source: R/combination_generators.R

Description

Create combinations with defined sample probability to each colors.

Usage

1
2
3
vfrequency(ntag, colorsname, colorsf, nspecial = 0, name1 = "Metal",
  name2 = "EMPTY", location1 = 1, location2 = 2, nspecial1 = 1,
  nspecial2 = 1)

Arguments

ntag

Number of tag to be used in each animal.

colorsname

Names/Code of color tags to be sample.

colorsf

Frequencies/ratio for color sample.

nspecial

Number of special tags/codes, such as metallic, 'EMPTY', or flag (min 0, max 2).

name1

Name of special tag 1.

name2

Name of special tag 2.

location1

Position (or group of positions) to special band 1.

location2

Position (or group of positions) to special band 2.

nspecial1

Number of special tag 1 that will be present in all sequences genetated.

nspecial2

Number of special tag 2 that will be present in all sequences genetated.

Value

A sequencie of tags

Examples

1
2
3
tcol<-c('Black','Blue','Brown','Gray','Green','Pink','Purple','Red','White','Yellow')
p<-c(1,2,5,1,2,2,4,5,8,5)
genseq(30, 4, tcol, gen_method='vfrequency', colorsf=p)

biagolini/GenTag documentation built on July 24, 2019, 10:14 a.m.