Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

standardMethods

Utility to automatically generate accessor and replacement functions


Description

Creates definitions for accessor and replacement functions of an given class.

Usage

standardMethods(class, writetofile = FALSE, directory)

Arguments

class

the class for which accessor and replacement functions are to be produced, given as a string

writetofile

logical value, indicating wheter output is to be written to a file

directory

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"

Value

no value is returned

Author(s)

Thomas Stabla statho@web.de

Examples

setClass("testclass", representation(a = "numeric", b = "character"))
standardMethods("testclass")

distr

Object Oriented Implementation of Distributions

v2.8.0
LGPL-3
Authors
Florian Camphausen [ctb] (contributed as student in the initial phase --2005), Matthias Kohl [aut, cph], Peter Ruckdeschel [cre, cph], Thomas Stabla [ctb] (contributed as student in the initial phase --2005), R Core Team [ctb, cph] (for source file ks.c/ routines 'pKS2' and 'pKolmogorov2x')
Initial release
2019-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.