Learn R Programming

rgp (version 0.4-1)

functionVariablePresenceMap: Variable Presence Maps

Description

Counts the number of input variables (formal arguments) present in the body of a individual function. Applied to a population of individuals, this information is useful to identify driving variables in a modelling task. functionVariablePresenceMap returns a (one row) variable presence map for a function, populationVariablePresenceMap returns a variable presence map for a population of RGP individuals (a list of R functions).

Usage

functionVariablePresenceMap(f)
populationVariablePresenceMap(pop)

Arguments

f
A R function to return a variable presence map for.
pop
A RGP population to return a variable presence map for.

Value

A data frame with variables (formal parameters) in the columns, individuals (function) in the rows and variable counts in the cells.