spray (version 1.0-25)

nterms: Number of nonzero terms in a spray object

Description

Number of nonzero terms in a spray object

Usage

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

Arguments

x

Object of class spray

Author

Robin K. S. Hankin

Details

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

Examples

Run this code

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


seq_along(a)

Run the code above in your browser using DataLab