rename_view: Rename view in a view composition

View source: R/view-manipulators.R

rename_viewR Documentation

Rename view in a view composition

Description

Rename view in a view composition

Usage

rename_view(current.views, old.name, new.name, new.abbrev = new.name)

Arguments

current.views

the current view composition.

old.name

old name of the view.

new.name

new name of the view.

new.abbrev

new abbreviated name.

Value

A mistyR view composition with a renamed view.

See Also

Other view manipulation functions: filter_views(), select_markers()

Examples

view1 <- data.frame(marker1 = rnorm(100, 10, 2), marker2 = rnorm(100, 15, 3))
view2 <- data.frame(marker1 = rnorm(100, 10, 5), marker2 = rnorm(100, 15, 5))

misty.views <- create_initial_view(view1) %>%
  add_views(create_view("originalname", view2, "on"))
str(misty.views)

# rename and preview
misty.views %>%
  rename_view("originalname", "renamed", "rn") %>%
  str()

saezlab/misty documentation built on March 25, 2024, 4:11 p.m.