script/test_signature.R

# TODO: Add comment
# 
# Author: gagneur
###############################################################################


## S4 implementation
setGeneric(
		"test",
		function( x, y, a=0 ){
			standardGeneric("test")
		}
)

#o, sets, population=NULL, alpha=NA, beta=NA, p=NA, steps=1e6
setMethod(
		"test",
		signature = c(x="numeric", y="numeric"),
		function( x, y, a ) {
			x+y+a
		}
)

Try the mgsa package in your browser

Any scripts or data that you put into this service are public.

mgsa documentation built on Nov. 8, 2020, 7:54 p.m.