CGPfunctions icon indicating copy to clipboard operation
CGPfunctions copied to clipboard

Compatibility with Pipes (%>%)

Open tafakkur opened this issue 4 years ago • 2 comments

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

tafakkur avatar Dec 07 '20 16:12 tafakkur

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

ibecav avatar Dec 07 '20 19:12 ibecav

Okay thanks. Great package by the way. Really appreciate it. 👍

tafakkur avatar Dec 07 '20 22:12 tafakkur