Infix function code in Rmarkdown Rstudio

something like this should work:

`%>>%` <- function(lhs, rhs){
  if (lhs > rhs*10) {
    return(TRUE)
  } else return(FALSE)
}


101 %>>% 10
#> [1] TRUE

99 %>>% 10
#> [1] FALSE

Created on 2018-09-18 by the reprex package (v0.2.0).

Hi! Welcome!

It sounds like this might be a question related to an assignment for a class? If so, please first take a look at our policy on such questions:

(You might also want to check out FAQ: Tips for writing R-related questions)

P.S. This is a question about the R language, not something specific to R Markdown or the RStudio IDE, so I changed the topic category and tags.