Skip to contents

Computes a string with the count and percentage of 1s.

Usage

AS.summary.binary(x, digits.fixed = 0)

Arguments

x

A binary (0 or 1) numeric or logical vector.

digits.fixed

Number of decimal places for the percentage. Default = 2.

Value

A string of the form "count (percent%)".