num_fctr: num_fctr: Compute number (proportion as percent)

Description Usage Arguments Value Examples

View source: R/numeric_funcs.R

Description

Given a single numeric vector or factor, will compute no. equal to a .referent value and percent of total, returning results in string. Mostly called by other functions.

Usage

1
num_fctr(x, .digits=2, .referent = TRUE)

Arguments

x

A numeric or factor class vector

.digits

Significant figures to round to

.referent

Value to compute no. (percent) for

Value

A character string of length 1, 'No. (percent)'

Examples

1
2
require(Scotty)
num_fctr(mtcars$cyl, .referent=4)

kmcconeghy/Scotty documentation built on Aug. 26, 2020, 11:45 p.m.