You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 106 of waterfall.R is prefixes = unique(gsub("\\.+[1-9]", "", colnames(df[, grepl("\\:", colnames(df))]))). My understanding is that this is supposed to identify the columns of df that are interactions.
If I have the interaction foo:bar, then gsub("\\.+[1-9]", "", "foo:bar") returns foo:bar.
However, if the interaction is foo.1:bar.2, thengsub("\\.+[1-9]", "", "foo.1:bar.2") returns foo1:bar1. This throws an error because . has been dropped from the names of the variables, which prevents startsWith from finding any matches on line 107.
The text was updated successfully, but these errors were encountered:
Line 106 of waterfall.R is
prefixes = unique(gsub("\\.+[1-9]", "", colnames(df[, grepl("\\:", colnames(df))])))
. My understanding is that this is supposed to identify the columns ofdf
that are interactions.If I have the interaction
foo:bar
, thengsub("\\.+[1-9]", "", "foo:bar")
returnsfoo:bar
.However, if the interaction is
foo.1:bar.2
, thengsub("\\.+[1-9]", "", "foo.1:bar.2")
returnsfoo1:bar1
. This throws an error because.
has been dropped from the names of the variables, which preventsstartsWith
from finding any matches on line 107.The text was updated successfully, but these errors were encountered: