rngCount: Count Hits in RRNG

View source: R/rapt_spec.R

rngCountR Documentation

Count Hits in RRNG

Description

rngCount counts the number of hits for each entry within a RRNG object. To get hit information within a RRNG, use rngPOS.

Usage

rngCount(pos, rng, simplify = FALSE)

Arguments

pos

The POS or ATO to be ranged. A data.frame created by readPOS or readATO

rng

The RRNG ranges to apply. A data.frame created by readRRNG

simplify

logical. Whether to simplify the counts by ion name; default is FALSE

Value

A data.frame containing the name of each range, the number of counts and fraction of the total ranged counts.

See Also

Other ranging functions: rangeCount(), rangePOS(), rngPOS()


aproudian2/rapt documentation built on Dec. 15, 2022, 4:24 a.m.