vector_proportion: Calculate the proprotion of each value in the vector with a...

View source: R/rtisan.r

vector_proportionR Documentation

Calculate the proprotion of each value in the vector with a twist!

Description

This is _almost_ a vector version of make_frequency_df, except it takes only the last t values of the vector for the sum. Why? I am not certain.

Usage

vector_proportion(t, output_vector = NULL)

Arguments

t

Number of elements on the bottom of the sorted vector from which to calculate the sum which is used as the denominator of the frequencies.

output_vector

The input of reads/tag from which to calculate this peculiar variant of frequencies.


abelew/stampr documentation built on April 14, 2022, 5:03 a.m.