mutate: Mutate multiple columns

mutateR Documentation

Mutate multiple columns

Description

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")

acidgenomics/r-acidgenerics documentation built on April 9, 2024, 7:14 a.m.