Difference between revisions of "OpasnetUtils/Ovariable"

From Testiwiki
Jump to: navigation, search
(Created page with "Category:Opasnet Category:R tools {{method|moderator=|stub=Yes}} =movariable= ==Description== movariable takes a data.frame, a function, and a list and makes an ovariabl...")
 
m
Line 13: Line 13:
 
graphics="1"
 
graphics="1"
 
>
 
>
 
 
# MOVARIABLE ########## movariable takes a data.frame, a function, and a list and makes an ovariable out of them. It is a  
 
# MOVARIABLE ########## movariable takes a data.frame, a function, and a list and makes an ovariable out of them. It is a  
 
#####subfunction of make.ovariable and prevents infinite recursion of S4 methods.
 
#####subfunction of make.ovariable and prevents infinite recursion of S4 methods.
Line 34: Line 33:
 
return(out)
 
return(out)
 
}
 
}
 
  
 
</rcode>
 
</rcode>
Line 50: Line 48:
 
graphics="1"
 
graphics="1"
 
>
 
>
 
 
# SETCLASS OVARIABLE ################### Defines the S4 class "ovariable" which is the basic building block in open assessments.
 
# SETCLASS OVARIABLE ################### Defines the S4 class "ovariable" which is the basic building block in open assessments.
 
temp <- setClass(
 
temp <- setClass(
Line 63: Line 60:
 
)
 
)
 
)
 
)
 
 
</rcode>
 
</rcode>
  

Revision as of 11:34, 14 June 2012



movariable

Description

movariable takes a data.frame, a function, and a list and makes an ovariable out of them. It is a subfunction of make.ovariable and prevents infinite recursion of S4 methods.

Code

+ Show code


setclass.ovariable

Description

Defines the S4 class "ovariable" which is the basic building block in open assessments.

Code

+ Show code


setmethod.make.ovariable

Description

make.ovariable takes a vector or data.frame and makes an ovariable out of it.

Code

+ Show code

See also