OpasnetUtils/Math: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(first draft based on own thinking)
m (Reverted edits by Jouni (talk) to last revision by Pauli)
 
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==


<rcode name="summary">
https://www.opasnet.org/svn/opasnet_utils/trunk/R/Math.r
 
# 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)]]

Latest revision as of 08:30, 28 December 2012



Description

Defines basic mathematical operations (log, exp, abs, ...) for ovariables

Code

https://www.opasnet.org/svn/opasnet_utils/trunk/R/Math.r

See also