sub-.BDataHistograms: Subsetting BDataHistograms

[.BDataHistogramsR Documentation

Subsetting BDataHistograms

Description

A subsetting function selecting only a part of the histograms

Usage

## S3 method for class 'BDataHistograms'
x[i, j, ...]

Arguments

x

a BDataHistograms object

i

index of rows to be extracted

j

index of the columns, typically missing for the subsetting

...

further generic parameters such das drop=FALSE

Value

A BDataHistograms object with the subset of histograms described by the basis

Examples

set.seed(47)
breaks = seq(-3,3,by=1)
inRange = function(x) -3<x & x<3
X = t(replicate(4,hist(Filter(inRange,rnorm(1000)),breaks=breaks,plot=FALSE)$counts))
hists = BDataFrequencyHistograms(X,breaks=breaks,basis=B2N01Basis5)
hists[1:2, ]

DistributionalDDA documentation built on Oct. 20, 2026, 5:06 p.m.