spray
Number of nonzero terms in a spray object
nterms(S)
Object of class spray
# NOT RUN { nterms(spray(diag(seq_len(5)))) # }
Run the code above in your browser using DataLab