forked from datalorax/equatiomatic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added flexibility for intercept notation
- Loading branch information
Daniel Anderson
committed
Jul 24, 2020
1 parent
bedbf0d
commit 20caf32
Showing
8 changed files
with
49 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,34 @@ | ||
#' Strict versions of \code{base::\link[base]{mapply}} | ||
#' | ||
#' | ||
#' Return a vector of the corresponding type | ||
#' | ||
#' | ||
#' @keywords internal | ||
#' | ||
#' | ||
#' @param \dots arguments passed to \code{base::\link[base]{mapply}} | ||
#' | ||
#' @return A vector of the corresponding type, \code{chr} = character, | ||
#' | ||
#' @return A vector of the corresponding type, \code{chr} = character, | ||
#' \code{dbl} = double, \code{lgl} = logical, and \code{int} = logical | ||
#' | ||
|
||
#' @describeIn mapply_chr Return a character vector | ||
#' | ||
mapply_chr <- function(...) { | ||
out <- mapply(...) | ||
stopifnot(is.character(out)) | ||
out | ||
} | ||
|
||
#' @inheritParams mapply_chr | ||
#' @describeIn mapply_chr Return a logical vector | ||
mapply_lgl <- function(...) { | ||
out <- mapply(...) | ||
stopifnot(is.logical(out)) | ||
out | ||
} | ||
|
||
#' @inheritParams mapply_chr | ||
#' @describeIn mapply_chr Return an integer vector | ||
mapply_int <- function(...) { | ||
out <- mapply(...) | ||
stopifnot(is.integer(out)) | ||
out | ||
} | ||
|
||
#' @inheritParams mapply_chr | ||
#' @describeIn mapply_chr Return a double vector | ||
mapply_dbl <- function(...) { | ||
out <- mapply(...) | ||
stopifnot(is.double(out)) | ||
out | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.