Nothing
#' Remove logical negation
#'
#' Removes the `!` unary operator from an expression.
#' For example, `!is.na(x)` becomes `is.na(x)` and `!(a > b)` becomes `(a > b)`.
#'
#' @return A [Mutator] object.
#' @export
#' @examples
#' remove_negation()
remove_negation <- function() {
Mutator$new(
from = "!<expr>",
to = "<expr>",
query = "(unary_operator) @whole",
match_fn = function(text) startsWith(text, "!"),
replacement_fn = function(text) substring(text, 2)
)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.