reconstruct: Supportive function for the pmdSamp

Description Usage Arguments Details Examples

Description

Supportive function for the pmdSamp function to convert the integration site data into base sampling data

Usage

1
reconstruct(abun.vec)

Arguments

abun.vec

vector if untegration sites called by function pmdSamp

Details

pmdSamp requires a function to convert the

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (abun.vec) 
{
    len.abun <- length(abun.vec)
    numVec <- c(1:len.abun)
    finraw <- numeric()
    for (i in 1:length(numVec)) {
        temp <- rep(numVec[i], abun.vec[i])
        finraw <- c(finraw, temp)
    }
    return(finraw)
  }

eritema/inseqDiv documentation built on May 16, 2019, 8:48 a.m.