Category: Web Programming

Call by Reference in R

Call by reference in R: Sometimes it is convenient to use “call by reference evaluation” inside an R function. For example, if you want to have multiple return value for …

Generating a Lag Variables

Generating a lag variables: A few days ago, my friend asked me is there any function in R to generate lag/lead variables in a data. Frame or did similar thing …

A Handy Concatenation Operator

A handy concatenation operator: It may be useful for you to define a concatenation operator for characters. Sometimes, I find this is more intuitive and handy than using paste0 or paste. Also, it …