Learn R Programming

ipdmeta (version 1.1)

which.formula: Formula Comparison

Description

Give index of shared terms of formulae. Returns the index of the shared components in terms of the vector of terms for f1.

Usage

which.formula(f1,f2)

Arguments

f1
reference formula
f2
formula

Value

  • Vector of shared index.

Examples

Run this code
f1 <- ~x*y
f2 <- ~y

which.formula(f1,f2)

Run the code above in your browser using DataLab