R/utils.R
label_n.Rd
Convenience function to display N
label_n(x, brackets = FALSE)
Data or singular value.
Set TRUE to enclose result in ( ).
TRUE
( )
A character of length 1.
label_n(100) #> [1] "N = 100" label_n(tibble::tibble(x = 1:10, y = 1:10), brackets = TRUE) #> [1] "(N = 10)"