OpasnetUtils/Math: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(first draft based on own thinking) |
||
Line 5: | Line 5: | ||
==Description== | ==Description== | ||
Summary defines how summaries of [[OpasnetUtils/Ovariable|ovariables]] are shown. | |||
==Code== | ==Code== | ||
<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
Moderator:Nobody (see all) Click here to sign up. |
This page is a stub. You may improve it into a full page. |
Upload data
|
Description
Summary defines how summaries of ovariables are shown.