Commit 2d250b2c authored by houyun's avatar houyun
Browse files

export as_correlate

parent 9ba5d5e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ export(Geomshaping)
export(aes)
export(anno_link)
export(as.igraph)
export(as_correlate)
export(as_matrix_data)
export(as_md_tbl)
export(as_tbl_graph)
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
#' @param ... others parameters.
#' @return a correlate object.
#' @rdname as_correlate
#' @export
as_correlate <- function(x, ...) {
  UseMethod("as_correlate")
}
+5 −0
Original line number Diff line number Diff line
@@ -41,6 +41,11 @@
              "character", "list", "marker")) {
    register_s3_method("linkET", "marker", g)
  }

  ### register S3 method about as_correlate
  for (g in c("matrix", "data.frame", "rcorr", "corr.test", "easycorrelation")) {
    register_s3_method("linkET", "as_correlate", g)
  }
}

register_s3_method <- function (pkg, generic, class, fun = NULL)