Skip to content

Commit

Permalink
fixed missing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
trinker committed Dec 21, 2016
1 parent ccb1ddb commit bac739e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 6 additions & 3 deletions R/f_parenthesis.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#' @param x_digits The number of digits to round the x vector.
#' @param y_digits The number of digits to round the y vector.
#' @param sep The separator between the first number and the leading parenthesis.
#' @param x_prefix A constant to place before each value in the x vector.
#' @param y_prefix A constant to place before each value in the y
#' vector inside of the prenthesis.
#' @param prop_fun The proportion function to convert the y y vector in
#' \code{f_num_percent}. Default is \code{f_prop2percent}. \code{f_percent} is
#' used for when the values are alrey percentages.
Expand Down Expand Up @@ -50,10 +53,10 @@
#' n_perc = f_num_percent(n, prop, 0)
#' )
#' }
f_parenthesis <- function(x, y, sep = "", prefix = "", parenthesis_prefix = "", ...){
f_parenthesis <- function(x, y, sep = "", x_prefix = "", y_prefix = "", ...){
paste(
paste0(prefix, x),
paste0("(", parenthesis_prefix, y, ")"),
paste0(x_prefix, x),
paste0("(", y_prefix, y, ")"),
sep = sep
)
}
Expand Down
7 changes: 6 additions & 1 deletion man/f_paragraph.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bac739e

Please sign in to comment.