OpasnetUtils/Math: Difference between revisions

From Opasnet
Jump to navigation Jump to search
mNo edit summary
(first draft based on own thinking)
Line 5: Line 5:


==Description==
==Description==
Defines basic mathematical operations (log, exp, abs, ...) for [[OpasnetUtils/Ovariable|ovariables]]
 
Summary defines how summaries of [[OpasnetUtils/Ovariable|ovariables]] are shown.


==Code==
==Code==


https://www.opasnet.org/svn/opasnet_utils/trunk/R/Math.r
<rcode name="summary">
 
# SETMETHOD summary ################### Summary defines how summaries of ovariables are shown.
setMethod(
f = "summary",
signature = signature(object = "ovariable"),
definition = function(object, ...) {
test <- paste(object@name, "Result", sep = "") %in% colnames(object@output)
rescol <- ifelse(test, paste(object@name, "Result", sep = ""), "Result")
object@output <- object@output[ , -grep("Description|Source", colnames(object@output))]
print(xtable(head(object@output)), type = 'html')
# Kehityskohteita:
## Näytetään vain yksi iteraatio, jos Iter-sarake on olemassa.
## Lasketaan mean, median, min, max, 95%CI, SD resultista selittävien sarakkeiden suhteen.
}
)
</rcode>


==See also==
==See also==


* [[OpasnetUtilsExt]]
* [[OpasnetBaseUtils]]
* [[OpasnetBaseUtils]]
* [[Object-oriented programming in Opasnet]]
* [[Object-oriented programming in Opasnet]]
* [[Opasnet (R library)]]
* [[Opasnet (R library)]]

Revision as of 08:29, 28 December 2012



Description

Summary defines how summaries of ovariables are shown.

Code

+ Show code

See also