Skip to contents

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

Usage

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

Arguments

x

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

digits.fixed

Number of decimal places for the percentage (and the weighted count if weights are used.). Default = 0.

weights

Optional numeric vector of observation weights.

Value

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