xspliner icon indicating copy to clipboard operation
xspliner copied to clipboard

Package crashes on duplicated variables

Open krystian8207 opened this issue 5 years ago • 0 comments

See:

formula <- log(y) ~
    xs(x, method_opts = list(type = type)) * z + xf(t) + w ^ 2 + I(z ^ 2)
extract_formula_var_names(formula_4, data) # gives c("y", "x", "z", "t", "w")
get_formula_raw_components(formula_terms) # gives
    c("xs(x, method_opts = list(type = type))", "z", "xf(t)", "w", "I(z^2)")

Find out what logic should be here implemented do match z variable.

krystian8207 avatar Nov 14 '18 21:11 krystian8207