Skip to content

Commit

Permalink
Formatting and amend & to &&
Browse files Browse the repository at this point in the history
  • Loading branch information
remlapmot committed Jul 5, 2024
1 parent 00cfa3b commit 0b7eedb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tsri.R
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0b7eedb

Please sign in to comment.