Learn R Programming

rearrr (version 0.3.4)

rev_windows_rearranger_: Wrapper for running centering rearrange methods

Description

Wrapper for running centering rearrange methods

Usage

rev_windows_rearranger_(
  data,
  window_size,
  factor_name = ".window",
  overwrite = FALSE
)

Value

The sorted data.frame (tibble) / vector. Optionally with the windows factor added.

When `data` is a vector and `keep_windows` is `FALSE`, the output will be a vector. Otherwise, a data.frame.

Arguments

data

data.frame or vector.

window_size

Size of the windows. (Logical)

factor_name

Name of the factor with window identifiers. If `NULL`, no column is added.

overwrite

Whether to allow overwriting of existing columns. (Logical)