R Under development (unstable) (2026-01-18 r89306 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library( "miscTools" ) > > a <- 1:10 > attr( a, "min" ) <- 1 > attr( a, "max" ) <- 10 > sum(a) [1] 55 > sumKeepAttr(a) [1] 55 attr(,"min") [1] 1 attr(,"max") [1] 10 > > proc.time() user system elapsed 0.14 0.03 0.15