Learn R Programming

HBP (version 0.1.2)

choose_chr_bed: choose which chrom from the BED file

Description

choose which chrom from the BED file

Usage

choose_chr_bed(m_bed, chrom_list = "chr2L")

Arguments

m_bed

chrom_list

Examples

Run this code
# NOT RUN {
##---- 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 (m_bed, chrom_list = "chr2L")
{
    sec = NULL
    for (j in 1:length(chrom_list)) {
        sec = rbind(sec, m_bed[m_bed$chr == chrom_list[j], ])
    }
    return(sec)
  }
# }

Run the code above in your browser using DataLab