Utility to automatically generate accessor and replacement functions
Creates definitions for accessor and replacement functions of an given class.
standardMethods(class, writetofile = FALSE, directory)
- the class for which accessor and replacement functions are to be produced, given as a string
- logical value, indicating wheter output is to be written to a file
- if writetofile = TRUE, the output is written to a file in the given directory, the name of the file starting with "classname " and ending with "StandardMethods.txt"
- no value is returned
setClass("testclass", representation(a = "numeric", b = "character")) standardMethods("testclass")
Looks like there are no examples yet.