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.

25 lines
738B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/tests.R
  3. \name{testify}
  4. \alias{testify}
  5. \title{Transform any test function into a valid test function for the table}
  6. \usage{
  7. testify(x, f, group)
  8. }
  9. \arguments{
  10. \item{x}{A vector}
  11. \item{f}{The function to try to apply, or a formula combining two functions}
  12. \item{group}{Grouping factor}
  13. }
  14. \value{
  15. The results for the function applied on the vector, compatible with the format of the result table
  16. }
  17. \description{
  18. Transform a function into a valid test function for the table
  19. Applying the function on a numerical vector should return one value
  20. Applying the function on a factor should return nlevels + 1 value, or one value per factor level
  21. }
  22. \keyword{internal}