Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Infix operator in R:

  > '%mult%' <- function(a,b) a*b
  > 3 %mult% 5
  [1] 15
Using infix operators as functions:

  > '*'(3,5)
  [1] 15


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: