testify {desctable}R Documentation

Transform any test function into a valid test function for the table

Description

Transform a function into a valid test function for the table Applying the function on a numerical vector should return one value Applying the function on a factor should return nlevels + 1 value, or one value per factor level

Usage

testify(x, f, group)

Arguments

x

A vector

f

The function to try to apply, or a formula combining two functions

group

Grouping factor

Value

The results for the function applied on the vector, compatible with the format of the result table


[Package desctable version 0.3.0 Index]