nathaneastwood / poorman

A poor man's dependency free grammar of data manipulation
https://nathaneastwood.github.io/poorman/
Other
340 stars 15 forks source link

[BUG] Error of %>% operation #26

Closed yzhlinscau closed 4 years ago

yzhlinscau commented 4 years ago

A simple example as following:

iris[,-5] %>% correlation::correlation() %>% summary

the %>% would work for iris[,-5] %>% correlation::correlation() , but not sucess for the next %>% summary. While dplyr do not have the problem.

Error message as following: Error in rhs[[1L]] : object of type 'symbol' is not subsettable

yzhlinscau commented 4 years ago

when add '()' after function, then it works! iris[,-5] %>% correlation::correlation() %>% summary()

nathaneastwood commented 4 years ago

Yeah exactly that. You need to include the () with the {poorman} pipe.