Return the parameter space size of a function.

Share:

Description

Return the parameter space size of a function.

Usage

1
2
3
4
  number_of_parameters(fn)

  ## S3 method for class 'soo_function'
 number_of_parameters(fn)

Arguments

fn

Function.

Value

Expected length of first argument. I.e. the size of the parameter space of the function fn.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.