From 0b7eedbf0c09136c1610f8939a4786f3408d01b4 Mon Sep 17 00:00:00 2001 From: Tom Palmer Date: Fri, 5 Jul 2024 14:19:08 +0100 Subject: [PATCH] Formatting and amend & to && --- R/tsri.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/tsri.R b/R/tsri.R index af01f51..f50e28a 100644 --- a/R/tsri.R +++ b/R/tsri.R @@ -115,7 +115,7 @@ tsri <- function(formula, instruments, data, subset, na.action, if(has_dot(formula)) { f1 <- formula(formula, rhs = 1L) f2 <- formula(formula, lhs = 0L, rhs = 2L) - if(!has_dot(f1) & has_dot(f2)) formula <- Formula::as.Formula(f1, + if (!has_dot(f1) && has_dot(f2)) formula <- Formula::as.Formula(f1, stats::update(formula(formula, lhs = 0L, rhs = 1L), f2)) } ## call model.frame()