nterms: Number of nonzero terms in a 'spray' object

ntermsR Documentation

Number of nonzero terms in a spray object

Description

Number of nonzero terms in a spray object

Usage

nterms(x)
## S3 method for class 'spray'
length(x)

Arguments

x

Object of class spray

Details

Number of nonzero terms in a spray object. Function length() is defined so that seq_along() works as expected

Author(s)

Robin K. S. Hankin

Examples


(a <- rspray())
nterms(a)


seq_along(a)

spray documentation built on Aug. 10, 2023, 5:11 p.m.