Description Usage Arguments Details Value Author(s) See Also Examples
Function to add new functions for data aggregation to the library.
1 | add_aggrType(name,func,overwrite=FALSE,internal=FALSE,svn_path="http://subversion/svn/magpie/libraries/")
|
name |
Name of the aggregation performed with |
func |
Aggregation function. |
overwrite |
Boolean. Set to true if you want to overwrite the function of an existing aggregation routine. |
internal |
Boolean. By default (FALSE) the library is checked out, updated and committed. If TRUE, only the valdata object in the workspace is modified. |
svn_path |
Path of the svn repository. |
This function adds new aggregation routines to the validation library. Such a routine consists of an aggregation function func
and a corresponding name. The routines are seved in valdata$aggr_types
.
Returns 1 in case of errors, 0 otherwise.
Markus Bonsch
validationPlot
,addData
,addMapping
,getData
1 2 3 4 | ## Not run:
add_aggrType(func=function(x,weight){mean(x*weight,na.rm=T)},name="mean")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.