I'm actually running on a problem with the T pipe. I'm trying to do 3 things in the same chain:
- Fit my GLM
- Save it in a variable
- Print it's summary
So I'm trying the following syntax:
my_variable <- data %>%
glm(Responce ~ Variables, family) %T>%
summary
Which does not work as expected. The glm get's fitted, but the summary wont show itself. So I'm force to break it into 2 chains:
my_variable <- data %>%
glm(Responce ~ Variables, family)
my_variable %>% summary
So I'm thinking: Either I didn't get the functionality of the T-pipe, either it's not properly coded and mess around with the summary function.
Because if I try:
my_variable <- data %>%
glm(Responce ~ Variables, family) %T>%
plot
it works well.
Some ideas?