swap: swap two variables in a given environment

Description Usage Arguments Examples

View source: R/formatting_p.R

Description

swap two variables in a given environment

Usage

1
swap(x, y, envir = parent.frame())

Arguments

x

variable. in theory, any R object

y

variable. in theory, any R object

Examples

1
2
3
a <- 3
b <- 4
swap(a, b)

nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.