binary.flip: binary.flip

View source: R/binary.flip.r

binary.flipR Documentation

binary.flip

Description

Flip binary numbers

Usage

binary.flip(x)

Arguments

x

A vector of 0/1 numbers.

Value

X with 0's flipped to 1's and 1's flipped to 0's

Author(s)

Jared P. Lander

Examples


binary.flip(c(1,1,0,1,0,0,1))


jaredlander/useful documentation built on Nov. 4, 2023, 10:56 a.m.