File: a.R

package info (click to toggle)
r-cran-generics 0.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 544 kB
  • sloc: sh: 13; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 451 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#' Generic test for multiple methods
#'
#'
#' @param x,y A parameter
#'
#' @rdname multi-method
#'
#' @export
multi_method <- function(x, y) {
  UseMethod("multi_method")
}

#' Test default
#'
#' @param x,y A parameter
#'
#' @rdname multi-method-2
#'
#' @export
multi_method.default <- function(x, y) {
  x
}

#' Test data frame
#'
#' @param x,y A parameter
#'
#' @rdname multi-method-3
#'
#' @export
multi_method.data.frame <- function(x, y) {
  x
}