Learn R Programming

poolfstat (version 3.0.0)

block_sum: block_sum

Description

Sugar to compute the sum of a stat per block

Usage

.block_sum(stat, snp_bj_id)

Value

Return a vector of length nblocks containing the per-block sums of the input stat

Arguments

stat

vector of n stat values

snp_bj_id

integer n-length vector with block index (from 0 to nblock-1) of the stat value

Details

Sugar to compute the sum of a stat per block

Examples

Run this code
#

Run the code above in your browser using DataLab