R/junctions2vector.R

Defines functions juncitons2vector

Documented in juncitons2vector

#' @title juncitons2vector
#'
#' @description
#' \code{juncitons2vector} converts a strings with blocks to vectors of ones one zeros (A and B loci)
#'
#' @param ch the string
#'
#' @return A vectors of loci
#'
#' @author Kamil Jaron \email{kamiljaron at gmail.com}

juncitons2vector <- function(ch){
    rep(rep(c(0, 1), length = length(ch)), ch)
}
KamilSJaron/ConjunctionStats documentation built on May 7, 2019, 12:06 p.m.