tests/sumKeepAttrTest.R

library( "miscTools" )

a <- 1:10
attr( a, "min" ) <- 1
attr( a, "max" ) <- 10
sum(a)
sumKeepAttr(a)

Try the miscTools package in your browser

Any scripts or data that you put into this service are public.

miscTools documentation built on Dec. 9, 2019, 3 a.m.