Given a single numeric vector, will compute mean and standard deviation, returning results in string. Mostly called by other functions.

numeric_cont(x, .digits=2)

Arguments

x

A numeric vector

.digits

Significant figures to round to

Value

A character string of length 1, 'mean (SD)'

Examples

require(Scotty) num_cont(mtcars$mpg)
#> [1] "20 (6)"