Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
documented "matlike" option
  • Loading branch information
puetz committed Aug 11, 2017
1 parent 9e64a95 commit 003ea4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vcomb.R
Expand Up @@ -15,6 +15,9 @@
##' @param v1 first vector
##' @param v2 second vector
##' @param myfun function to combine the element pairs from the two vectors
##' @param matlike return in format similar to \code{outer}, i.e., the first
##' two dimensions reflect the vectors lengths, additional
##' dimensions are added when \code{myfun} has non-scalar output
##' @param ... not used
##' @return vector (or matrix, array) of combinations
##' @author Benno Puetz \email{puetz@@mpipsykl.mpg.de}
Expand Down Expand Up @@ -57,7 +60,7 @@ vcomb <- function(v1, v2,
## matrix or array from myfun
dim(retval) <- c(length(v1), length(v2), rd)
}

}
}
return(retval)
Expand Down

0 comments on commit 003ea4f

Please sign in to comment.