transmute.grouped_tsymble: transmute.grouped_tsymble

transmute.grouped_tsymbleR Documentation

transmute.grouped_tsymble

Description

An S3 method for transmuting a tsymble_ts object

Usage

## S3 method for class 'grouped_tsymble'
transmute(.data, ...)

Arguments

.data

A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details.

...

<data-masking> Name-value pairs. The name gives the name of the column in the output.

The value can be:

  • A vector of length 1, which will be recycled to the correct length.

  • A vector the same length as the current group (or the whole data frame if ungrouped).

  • NULL, to remove the column.

  • A data frame or tibble, to create multiple columns in the output.

Value

An object of the same type as .data. The output has the following properties:

  • Columns created or modified through ... will be returned in the order specified by ....

  • Unmodified grouping columns will be placed at the front.

  • The number of rows is not affected.

  • Columns given the value NULL will be removed.

  • Groups will be recomputed if a grouping variable is mutated.

  • Data frame attributes are preserved.


jagg19/AlpacaforR documentation built on July 3, 2023, 12:14 p.m.