You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
420B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/convenience_functions.R
  3. \name{percent}
  4. \alias{percent}
  5. \title{Return the percentages for the levels of a factor}
  6. \usage{
  7. percent(x)
  8. }
  9. \arguments{
  10. \item{x}{A factor}
  11. }
  12. \value{
  13. A nlevels(x) + 1 length vector of percentages
  14. }
  15. \description{
  16. Return a compatible vector of length nlevels(x) + 1
  17. to print the percentages of each level of a factor
  18. }