most_common: Most common binary digits

Description Usage Arguments Value

View source: R/day03.R

Description

If 0 and 1 are equally common, 1 is returned (rounding up).

Usage

1

Arguments

x

A matrix or data frame of binary integers

Value

A binary vector of length ncol(x)


Selbosh/adventofcode2021 documentation built on Jan. 1, 2022, 7:20 p.m.