pct: pct function

View source: R/format.R

pctR Documentation

pct function

Description

takes a dichotomous vector (0/1) and turns it into a percent value with '

Usage

pct(x, digits = 2, format = "dec")

Arguments

x

a vector of dichotomous values (0/1) in dec, num, or char format.

digits

number of digits to round the percent to

format

the format that the vector x is in. can be 'dec', 'num', or 'char'

Examples

pct_function()

clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.