The R Project SVN R

Rev

Rev 71366 | Rev 88914 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 71366 Rev 71388
Line 23... Line 23...
23
  where \code{name} specifies an existing function, possibly in another
23
  where \code{name} specifies an existing function, possibly in another
24
  package.  An alternative when creating a new generic function in this package is:
24
  package.  An alternative when creating a new generic function in this package is:
25
 
25
 
26
  \code{setGeneric(name, def)}
26
  \code{setGeneric(name, def)}
27
 
27
 
28
  where the function definition  \code{def} specifies the formal
28
  where the function definition \code{def} specifies the formal
29
  arguments and becomes the default method.
29
  arguments and becomes the default method.
30
 
30
 
31
}
31
}
32
\usage{
32
\usage{
33
setGeneric(name, def= , group=list(), valueClass=character(),
33
setGeneric(name, def= , group=list(), valueClass=character(),
Line 49... Line 49...
49
 
49
 
50
  }
50
  }
51
  \item{group}{ The name of the group
51
  \item{group}{ The name of the group
52
    generic function to which this function belongs.  See
52
    generic function to which this function belongs.  See
53
    \link{Methods_Details} for details of group generic functions in method
53
    \link{Methods_Details} for details of group generic functions in method
54
    selection and \link{S4GroupGenerics} for existing groups.
54
    selection and \link{S4groupGeneric} for existing groups.
55
  }
55
  }
56
  \item{valueClass}{ A character vector specifying one or more class
56
  \item{valueClass}{ A character vector specifying one or more class
57
    names.  The value returned by the generic function must
57
    names.  The value returned by the generic function must
58
    have (or extend) this class, or one of the classes; otherwise,
58
    have (or extend) this class, or one of the classes; otherwise,
59
    an error is generated.
59
    an error is generated.