I am unable to determine how to use (some ?) numerical formulas with magrittr. Here is a particular case:
library(magrittr)
y = c( complex(1, 1.0,2.0), complex(1, 3.0,4.0))
ymagn = y %>% sqrt(Re(.)**2 + Im(.)**2)
Which results in
Error in sqrt(., Re(.)^2 + Im(.)^2) : 2 arguments passed to 'sqrt' which requires 1
