Learn R Programming

xpose.xtras (version 0.0.2)

mutate.xpose_set: Mutation method for xpose_set

Description

Mutation method for xpose_set

Usage

# S3 method for xpose_set
mutate(.data, ..., .force = FALSE, .retest = !.force, .rowwise = FALSE)

Value

A set with updated top-level data (unless focused)

Arguments

.data

<xpose_set> An xpose_set object

...

<dynamic-dots> Mutations to apply to the xpose_set (passed through to <dplyr::mutate>)

.force

<logical> Should top-level elements be allowed to be manipulated? (default: FALSE)

.retest

<logical> Should the xpose_set be retested after mutation? (default: !force)

.rowwise

<logical> Should the mutation be applied rowwise? (default: FALSE)

Examples

Run this code
xpdb_set %>%
  # Adds foo = bar for all objects in the set
  mutate(foo = "bar") %>%
  # Reshape to visualize
  reshape_set()

Run the code above in your browser using DataLab