lasso2 (version 1.2-21.1)

merge.formula: Merge Formula With Right Hand Side of Second Formula

Description

This is method for formulas of the merge generic function. Here it is support for the function l1ce and not intended to be called directly by users.

Usage

# S3 method for formula
merge(x, y, …)

Arguments

x,y

formulas.

potentially further arguments passed to methods.

Examples

Run this code
# NOT RUN {
merge(y ~ x1, ~ x2) ## ->  y ~ x1 + x2

f2 <- merge(y ~ x1*x2, z ~ (x2+x4)^3)
f. <- merge(y ~ x1*x2,   ~ (x2+x4)^3) # no LHS for 2nd term
f2
stopifnot(f2 == f.)
# }

Run the code above in your browser using DataCamp Workspace