Skip to contents

Mutate multiple columns

Usage

mutateAll(object, fun, ...)

mutateAt(object, vars, fun, ...)

mutateIf(object, predicate, fun, ...)

transmuteAt(object, vars, fun, ...)

transmuteIf(object, predicate, fun, ...)

Arguments

object

Object.

fun

function. Mutation function.

...

Passthrough arguments to function declared in fun argument.

vars

character. Column names.

predicate

function. A predicate function to be applied to the columns. For example, is.atomic().

Value

Modified object.

Note

Mutations are only allowed on atomic columns.

See also

These functions are inspired by dplyr. However, they are designed to only work on Bioconductor S4 class objects, and use base R code internally.

Examples

showMethods("mutateIf")
#> Function: mutateIf (package AcidGenerics)
#> <No methods>
#>