vc_partition: Construct a regular or custom partition

View source: R/riemann.R

vc_partitionR Documentation

Construct a regular or custom partition

Description

Construct a regular or custom partition

Usage

vc_partition(interval = NULL, n = 10L, breaks = NULL)

Arguments

interval

Finite increasing pair of bounds. NULL when breaks supplied.

n

Positive integer number of regular cells; ignored with breaks.

breaks

Optional finite strictly increasing vector of partition points. When interval is supplied, endpoints must agree exactly.

Value

Plain list with type, interval, breaks, n, mesh and cells (left, right, width, midpoint). All cells have positive representable width.

Examples

vc_partition(c(0,2),n=4)
vc_partition(breaks=c(0,.2,1,2))

vectorialcalculus documentation built on Nov. 17, 2026, 1:09 a.m.