CGPfunctions
CGPfunctions copied to clipboard
Compatibility with Pipes (%>%)
I'm sorry if this has been asked before, but I couldn't find a clear answer.
When I pipe my data frame to the Plot2WayANOVA
function, it returns the following error: That dataframe does not exist
I've been using the same pipe sequence to feed data to ggplot
and the lm
functions, so there don't seem to be any errors
Is this by design or am I missing something here?
Min reproducible example:
iris %>%
Plot2WayANOVA(formula = Sepal.Length ~ Sepal.Width * Species,
dataframe = .,
plottype = "line")
Also results in:
Error in Plot2WayANOVA(formula = Sepal.Length ~ Sepal.Width * Species, :
That dataframe does not exist
Hi,
The function does NOT currently work with pipes. I'll leave this open for when I get a chance to investigate whether it makes sense to change it.
Chuck
Okay thanks. Great package by the way. Really appreciate it. 👍