search for: c_modelfram

Displaying 1 result from an estimated 1 matches for "c_modelfram".

Did you mean: c_modelframe
2016 Nov 08
0
confusing error from model.frame when var name=function name
...ppose you happen to have a variable name that matches an R function name: model.frame(~replicate,data=data.frame(x=1:5)) ## Error in model.frame.default(~replicate, data = data.frame(x = 1:5)) : ## object is not a matrix This happens somewhere inside a .External() call: data <- .External2(C_modelframe, formula, rownames, variables, varnames, extras, extranames, subset, na.action) so I haven't had the heart to track it all the way to its source yet. FWIW this happens whether the function is built-in or user-created. I don't think the possibly forthcoming "well just don...