Skip to content

Commit a9b9042

Browse files
committed
Fix examples for generate_synthetic_data() and mply_dbl()
1 parent a7e2d91 commit a9b9042

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

R/generate_synthetic_data.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
#' # Returning a SummarizedExperiment
5858
#' se <- generate_synthetic_data(n_proteins = 10, return_summarized_experiment = TRUE)
5959
#' se
60-
#' head(assay(se))
60+
#' head(SummarizedExperiment::assay(se))
6161
#'
6262
#' @export
6363
generate_synthetic_data <- function(n_proteins, n_conditions = 2,

R/util.R

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,20 @@
2121
#' @examples
2222
#' # Behaves similar to sapply(), but it always returns a matrix
2323
#' t(sapply(1:5, function(i) c(i - i/3, i, i + i/3)))
24-
#' mply_dbl(1:5, function(i) c(i - i/3, i, i + i/3), ncol=3)
24+
#' proDA:::mply_dbl(1:5, function(i) c(i - i/3, i, i + i/3), ncol=3)
2525
#'
2626
#' # Which can avoid some bad surprises
2727
#' t(sapply(1:5, identity))
28-
#' mply_dbl(1:5, identity)
28+
#' proDA:::mply_dbl(1:5, identity)
2929
#'
3030
#'
3131
#' # Works also with matrix input
3232
#' mat <- matrix(1:20, ncol=4)
3333
#' mat
34-
#' msply_dbl(mat, function(i) rep(i, each=2))
34+
#' proDA:::msply_dbl(mat, function(i) rep(i, each=2))
3535
#'
36+
#'
37+
#' @keywords internal
3638
mply_dbl <- function(x, FUN, ncol=1, ...){
3739
if(is.vector(x)){
3840
res <- vapply(x, FUN, FUN.VALUE=rep(0.0, times=ncol), ...)

man/generate_synthetic_data.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mply_dbl.Rd

+5-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)