samplePACds: Sample a PACdataset

View source: R/R_funclib_movAPA.r

samplePACdsR Documentation

Sample a PACdataset

Description

samplePACds returns a random subset of PACdataset.

Usage

samplePACds(pacds, N, nPAT = 1)

Arguments

pacds

a PACdataset

N

number of sampled PACs. If N>nrow(pacds), then do not sampling.

nPAT

filter PACs with total tagnum>=nPAT before sampling.

Value

A subset of PACdataset.

Examples

data(PACds)
pacds=samplePACds(PACds, N=1000)

BMILAB/movAPA documentation built on Jan. 3, 2024, 11:09 p.m.