Hi Martin

Thanks a lot for your short example. If you input

test(testObj)

it will return

22

However, how is it possible that the value will be saved in the object

i.e. (does not work currently!!??)
setMethod("test", signature=c("connect"),
  function( obj ) { [EMAIL PROTECTED]<[EMAIL PROTECTED] / 2 })

so that test(testObj) will save a new value to [EMAIL PROTECTED] or 

[EMAIL PROTECTED] will return 22.

Thanks.
Nik

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to